Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

The following example shows the syntax of a popup defined in a defs section and the use of the popup in a button:

Code Block
languagehtml/xml
linenumberstrue
<xal xmlns="http://openxal.org/ui/java">

...


  <defs>

...


   <popup id="myPopup">

...


    <verticalBoxPane backgroundColor="white">

...


     <label text="One"/>

...


     <label text="Two"/>

...


     <label text="Three"/>

...


     <label text="Four"/>

...


     <label text="Five"/>

...


    </verticalBoxPane>

...


   </popup>

...


  </defs>

...


  <rootPane>

...


   <borderPane>

...


    <desktopPane borderPosition="center">

...


     <horizontalFlowPane>
      <borderPane>
       <button text="Select" borderPosition="north" popup="#myPopup"/>

...


       <button text="OK" borderPosition="center"/>

...


       <button text="Apply" borderPosition="south" />

...


      </borderPane>

...


     </horizontalFlowPane>

...


    </desktopPane>

...


   </borderPane>

...


  </rootPane>

...


</xal>

The following figure shows the popup as defined in the above syntax:

NexawebImage RemovedImage Added

The following table lists and provides brief descriptions of popup specific attributes: 

...