Class ox.UI.ComboBox
Extends
ox.UI.Selection.
A combination of a text input field and a drop-down list.
Defined in: configuration.js.
Constructor Attributes | Constructor Name and Description |
---|---|
ox.UI.ComboBox(label, editable)
|
- Fields borrowed from class ox.UI.Selection:
- changed
- Fields borrowed from class ox.UI.Widget:
- default_value, enabled, formnode, initialized, isEnabled, isVisible, node, parent, visible, width
Method Attributes | Method Name and Description |
---|---|
get()
Returns the current value of the ComboBox.
|
|
set(value)
Sets the value of the ComboBox.
|
|
setEntries(values, display_values)
Sets the list of possible values and the corresponding displayed
textual descriptions.
|
- Methods borrowed from class ox.UI.Widget:
- addContent, applyEnabled, applyVisible, disable, enable, hide, remove, resize, setEnabled, setParent, setVisible, show
Class Detail
ox.UI.ComboBox(label, editable)
- Parameters:
- {I18nString} label
- The label of the ComboBox.
- {Boolean} editable
- Specifies whether the text input field can contain values which are not in the drop-down list. Defaults to false. Not implemented yet.
Method Detail
get()
Returns the current value of the ComboBox.
set(value)
Sets the value of the ComboBox.
- Parameters:
- value
setEntries(values, display_values)
Sets the list of possible values and the corresponding displayed
textual descriptions.
The parameters are used directly, without copying. Therefore,
the arrays should not be modified after being passed to this method.
An exception is modifying the arrays and immediately calling this
method again to update the displayed widget.
- Parameters:
- {Array} values
- An array of possible values.
- {I18nString[]} display_values
- An array of displayed texts. Each element represents the value in the values array with the same index.