Class JsmDoubleSelectField
Object
|
+--JsmObject
|
+--JsmWidget
|
+--JsmSelectField
|
+--JsmDoubleSelectField
- class
JsmDoubleSelectField
- extends JsmSelectField
Lets the user move values from one select list into another
Defined in net/sf/jsm/widgets/jsmDoubleSelectField.js
Constructor Summary |
JsmDoubleSelectField
(<Array> options, <Array> selectedValueOrLabel, <int> size)
Creates a new JsmDoubleSelectField
|
Method Summary |
JsmDoubleSelectField
|
clone()
Clones this JsmDoubleSelectField
|
Object
|
getNode()
Returns the node of the view component; in this case this is a link which will open a div with the select-boxes;
the model (this) will be attached to the node as property 'model'
|
void
|
showDiv(x, y)
|
void
|
updateModel(<JsmTable> table, <int> rowIdx, <int> columnIdx, theViewComponent)
Update the tabel model if all validators are passed.
|
_delimiter
Object _delimiter
_options
<private> Array _options
The options of this select box
_size
Object _size
How many options will be shown
selected
Object selected
JsmDoubleSelectField
JsmDoubleSelectField(<Array> options, <Array> selectedValueOrLabel, <int> size)
Creates a new JsmDoubleSelectField
Parameters:
options
- Array of options (value-label pairs), eg. [{'value':0, 'label':"All"},{'value':1, 'label':"UK"},{'value':2, 'label':"Ireland"}]
selectedValueOrLabel
- Array of selected values or labels
size
- Amount of visible options
clone
JsmDoubleSelectField clone()
Clones this JsmDoubleSelectField
getNode
Object getNode()
Returns the node of the view component; in this case this is a link which will open a div with the select-boxes;
the model (this) will be attached to the node as property 'model'
Returns:
theViewComponent The node of the view component (for example to append to a table cell)
showDiv
void showDiv(x, y)
updateModel
void updateModel(<JsmTable> table, <int> rowIdx, <int> columnIdx, theViewComponent)
Update the tabel model if all validators are passed. Will set the value and the meta data {@see JsmObject.META_DATA_NAME_VALUE} on the hosting {@JsmTd} object
Parameters:
table
- The table this widget is attached to
rowIdx
- The index of the row
columnIdx
- The index of the column
Documentation generated by
JSDoc on Tue Sep 26 08:42:57 2006