Start changeCombobox tag

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>
	
ATTRIBUTEVALUEDESCRIPTION
<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.

GETTOR PROTOCOLS:

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.
ChoiceDescriptor[] get<attribute_name>Choices()
where the return value is an array of ChoiceDescriptor's, each of which describes a choice in the combo box's drop down list. If choice tags statically define the combo box element, the gettor is not necessary.


SETTOR PROTOCOLS:

void set<attribute_name>(String selected)
where selected either identifies the name of the currently selected choice or the text string entered by the user 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.End change


[ Legal | AS/400 Glossary ]