PHP2Go Javascript Framework

Class EditSelectionField

Object
   |
   +--Field
         |
         +--ComponentField
               |
               +--EditSelectionField

class EditSelectionField
extends ComponentField

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

added

Object added

buttons

Array buttons

changed

Boolean changed

count

Object count

edit

Object edit

listSep

String listSep

lookup

Object lookup

removed

Object removed

top

Object top

Constructor Detail

EditSelectionField

EditSelectionField(<String> id, <String> edit, <String> lookup, <String> added, <String> removed, <String> sep)

Method Detail

add

void add(<Object> opts)

clear

void clear()

focus

void focus()

isEmpty

Boolean isEmpty()

remove

void remove()

removeAll

void removeAll()

serialize

String serialize()

setDisabled

void setDisabled(<Boolean> b)

setup

void setup()

updateButtons

void updateButtons()

PHP2Go Javascript Framework

Copyright © 2002-2006 by Marcos Pont
Documentation generated by JSDoc on Sun Oct 7 19:52:10 2007