|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--Field
|
+--ComponentField
|
+--EditSelectionField
Defined in form/editselectionfield.js
Requires:
| Field Summary | |
Object |
added
Control field that holds the added list 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 list size |
Object |
edit
Text iput used to add values in the list |
String |
listSep
Separator to the control lists |
Object |
lookup
Select element that holds the inserted items |
Object |
removed
Control field that holds the removed list 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 | |
EditSelectionField
(<String> id, <String> edit, <String> lookup, <String> added, <String> removed, <String> sep)
This class contains the client code of the EditSelectionField component. |
|
| Method Summary | |
void
|
add(<Object> opts)
Create a new list item based on the text input value. |
void
|
clear()
Reset the component to its default state |
void
|
focus()
Focus the first component's element |
Boolean
|
isEmpty()
Checks if at least one option was added in the component's select element |
void
|
remove()
Remove all selected options in the list |
void
|
removeAll()
Remove all options of the 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
Array buttons
Boolean changed
Object count
Object edit
String listSep
Object lookup
Object removed
Object top
| Constructor Detail |
EditSelectionField(<String> id, <String> edit, <String> lookup, <String> added, <String> removed, <String> sep)
id - Component ID
edit - Text input ID
lookup - Select input ID
added - Added values field ID
removed - Removed values field ID
sep - Separator to the control lists
| Method Detail |
void add(<Object> opts)
opts - Add options
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 | ||||||||