The following is the basic syntax of the combobox tag:
<COMBOBOX name= name editable ="yes"|"no">
where name identifies the combo box programmatically.
The combobox tag can be expanded with the following elements:
<COMBOBOX name=name> <LOCATION>location</LOCATION> <SIZE>size</SIZE> <DATACLASS>class_name</DATACLASS> <ATTRIBUTE>attribute_name</ATTRIBUTE> <CHOICE></CHOICE> <SHORT></SHORT> <INTEGER></INTEGER> <LONG></LONG> <FLOAT></FLOAT> <STRING></STRING> <FORMAT></FORMAT> <FLYOVER>helptext</FLYOVER> <HELPALIAS>component_name</HELPALIAS> </COMBOBOX> | ||
ATTRIBUTE | VALUE | DESCRIPTION |
<LOCATION> | location | Expresses
the x- and y-coordinates of the panel's location from the top left corner
in logical units. This tag is required. |
<SIZE> | size | Expresses the
width and height, respectively, of the component in logical units. This tag is required. |
<DATACLASS> | class_name | Supplies the data for the combobox using the DataBean interface. |
<ATTRIBUTE> | attribute_name | Contains the data for the combobox. If the dataclass tag is present,
the attribute tag must be used.
where the return value either identifies the name of the drop down list choice that should be selected or supplies the text string to be inserted if the combo box is editable. |
<CHOICE> | See the choice tag. | |
<SHORT> | See the data format tags. | |
<LONG> | See the data format tags. | |
<FLOAT> | See the data format tags. | |
<STRING> | See the data format tags. | |
<FORMAT> | See the data format tag. | |
<FLYOVER> | helptext | Should be displayed when context help is requested for this component. |
<HELPALIAS> | component_name | Should be displayed when context help is requested for this component. |
As the panel designer, you may want a particular action
performed when a combo box choice is selected.