JavaSwingComboBox¶
Java Swing Combo Box.
UI element class: javax.swing.JComboBox
Extends JavaObject
Extends SeSSimulatedObject
Behavior Pattern: JavaSwingObjectSelectableBehavior
Property Summary¶
Property | Description | Getter | Setter |
---|---|---|---|
ItemIndexByName | Returns item index by its name. | GetItemIndexByName | |
SelectedIndex | Index of the selected element of the object. | GetSelectedIndex | SetSelectedIndex |
SelectedText | Text of the selected item in a single string. | GetSelectedText | SetSelectedText |
Action Summary¶
Action | Description |
---|---|
DoSelectItem | Selects an item of this object. |
Property Detail¶
ItemIndexByName¶
Returns item index by its name. 'false' if name is not found.
Getter Parameters:
Name | Type | Description |
---|---|---|
name | string |
Type: number|boolean
Accessors: GetItemIndexByName
value = SeS('SomeJavaSwingComboBox').GetItemIndexByName(name)
SelectedIndex¶
Index of the selected element of the object.
Type: number
Accessors: GetSelectedIndex, SetSelectedIndex
value = SeS('SomeJavaSwingComboBox').GetSelectedIndex()
SeS('SomeJavaSwingComboBox').SetSelectedIndex(value)
SelectedText¶
Text of the selected item in a single string.
Type: string
Accessors: GetSelectedText, SetSelectedText
value = SeS('SomeJavaSwingComboBox').GetSelectedText()
SeS('SomeJavaSwingComboBox').SetSelectedText(value)
Action Detail¶
DoSelectItem¶
Selects an item of this object.
SeS('SomeJavaSwingComboBox').DoSelectItem(item)
Parameters:
Name | Type | Description |
---|---|---|
item | string | number | Item index or text value to select. |
Returns:
boolean: 'true' if success, 'false' otherwise.