Class Index | File Index

Classes

Class ox.UI.ComboBox


Extends ox.UI.Selection.
A combination of a text input field and a drop-down list.
Defined in: configuration.js.

Class Summary
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 Summary
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.

Documentation generated by JsDoc Toolkit 2.3.2 on Mon Jan 30 2012 16:58:00 GMT+0100 (CET)