...
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 | ||||
---|---|---|---|---|
| ||||
<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:
The following table lists and provides brief descriptions of popup specific attributes:
...