Class ox.UI.Selection
Extends
ox.UI.Widget.
Abstract base class of selection widgets.
This class handles the association between displayed objects and value
objects.
Defined in: configuration.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
This callback is called when the user selects a different value.
|
- Fields borrowed from class ox.UI.Widget:
- default_value, enabled, formnode, initialized, isEnabled, isVisible, node, parent, visible, width
Method Attributes | Method Name and Description |
---|---|
setEntries(values, display_values)
Sets the list of possible values and the corresponding displayed
values.
|
- Methods borrowed from class ox.UI.Widget:
- addContent, applyEnabled, applyVisible, disable, enable, get, hide, remove, resize, set, setEnabled, setParent, setVisible, show
Field Detail
{Function}
changed
This callback is called when the user selects a different value.
Method Detail
setEntries(values, display_values)
Sets the list of possible values and the corresponding displayed
values.
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.
- {Array} display_values
- An array of displayed values. Each element represents the value in the values array with the same index. The type of elements depends on the actual selection class.