Class ox.UI.RadioButtons
Extends
ox.UI.Selection.
A group of radio buttons. Only one option can be selected at a time.
Defined in: configuration.js.
Constructor Attributes | Constructor Name and Description |
---|---|
- 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 RadioButtons.
|
|
set(value)
Sets the value of the RadioButtons.
|
|
setEntries(values, display_values)
Sets the list of possible values and the corresponding displayed
labels.
|
- Methods borrowed from class ox.UI.Widget:
- addContent, applyEnabled, applyVisible, disable, enable, hide, remove, resize, setEnabled, setParent, setVisible, show
Method Detail
get()
Returns the current value of the RadioButtons.
set(value)
Sets the value of the RadioButtons.
- Parameters:
- value
setEntries(values, display_values)
Sets the list of possible values and the corresponding displayed
labels.
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.
- {String[]} display_values
- An array of displayed labels. Each element represents the value in the values array with the same index.