Versions Compared

Key

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

...

Global widgets are widgets that you can define in a defs section of a UI file so that you can then use those widgets multiple places through out the UI file. For more information on using global widgets, see the documentation on the defs section.

linearGradient

A linearGradient defines a pattern that can be used as the background color of a component.

...

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: 

...