JavaChoice¶
Java Choice.
UI element class: java.awt.Choice
Extends JavaObject
Extends SeSSimulatedObject
Behavior Pattern: JavaObjectSelectableBehavior
Property Summary¶
Property | Description | Getter | Setter |
---|---|---|---|
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¶
SelectedIndex¶
Index of the selected element of the object.
Type: number
Accessors: GetSelectedIndex, SetSelectedIndex
value = SeS('SomeJavaChoice').GetSelectedIndex()
SeS('SomeJavaChoice').SetSelectedIndex(value)
SelectedText¶
Text of the selected item in a single string.
Type: string
Accessors: GetSelectedText, SetSelectedText
value = SeS('SomeJavaChoice').GetSelectedText()
SeS('SomeJavaChoice').SetSelectedText(value)
Action Detail¶
DoSelectItem¶
Selects an item of this object.
SeS('SomeJavaChoice').DoSelectItem(item)
Parameters:
Name | Type | Description |
---|---|---|
item | string | number | Item index or text value to select. |
Returns:
boolean: 'true' if success, 'false' otherwise.