|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--Field
|
+--ComponentField
|
+--LookupSelectionField
Defined in form/lookupselectionfield.js
Requires:
| Field Summary | |
Object |
added
Control field that holds the added list items |
Object |
available
Select element that holds the available items |
Array |
buttons
Action buttons |
Boolean |
changed
Indicates if the list contents is different from its original state |
Object |
count
Label that shows the current count of selected items |
String |
listSep
Separator to the control lists |
Object |
removed
Control field that holds the removed list items |
Object |
selected
Select element that holds the selected items |
Object |
top
Top element in the component output structure |
| Fields inherited from class ComponentField |
componentClass
|
| Fields inherited from class Field |
fld, id, name, label, type
|
| Constructor Summary | |
LookupSelectionField
(<String> id, <String> available, <String> selected, <String> added, <String> removed, <String> sep)
The LookupSelectionField component is composed by two select elements that can exchange options. |
|
| Method Summary | |
void
|
add()
Fetch all selected options from the source list and add them in the selected items list. |
void
|
addAll()
Copy all options from the source list to the target list. |
<private> void
|
addSingle(<Object> opt)
Private method that adds a single options in the selected items list |
void
|
clear()
Reset the component to its default state |
void
|
focus()
Move focus to the component's first member |
Boolean
|
isEmpty()
Checks if the list of selected items contains at least one option |
void
|
remove()
Remove all selected options from the selected items list |
void
|
removeAll()
Remove all options of the selected items list |
String
|
serialize()
Serialize the component's value. |
void
|
setDisabled(<Boolean> b)
Disables/enables the component |
void
|
setup()
Execute all the initialization steps of this form component |
void
|
updateButtons()
Update remove and removeAll buttons status based on the existance of elements in the target list |
| Methods inherited from class ComponentField |
raiseEvent
|
| Methods inherited from class Field |
getFormElement, getMask, getValue, setValue, enable, disable, beforeFocus
|
| Field Detail |
Object added
Object available
Array buttons
Boolean changed
Object count
String listSep
Object removed
Object selected
Object top
| Constructor Detail |
LookupSelectionField(<String> id, <String> available, <String> selected, <String> added, <String> removed, <String> sep)
id - Component ID
available - Source list ID
selected - Selected list ID
added - Added values field ID
removed - Removed values field ID
sep - Separator to the control lists
| Method Detail |
void add()
void addAll()
<private> void addSingle(<Object> opt)
opt - Option to be added
void clear()
void focus()
Boolean isEmpty()
void remove()
void removeAll()
String serialize()
void setDisabled(<Boolean> b)
b - Flag value
void setup()
void updateButtons()
|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||