PHP2Go Javascript Framework

Class LookupSelectionField

Object
   |
   +--Field
         |
         +--ComponentField
               |
               +--LookupSelectionField

class LookupSelectionField
extends ComponentField

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

added

Object added

available

Object available

buttons

Array buttons

changed

Boolean changed

count

Object count

listSep

String listSep

removed

Object removed

selected

Object selected

top

Object top

Constructor Detail

LookupSelectionField

LookupSelectionField(<String> id, <String> available, <String> selected, <String> added, <String> removed, <String> sep)

Method Detail

add

void add()

addAll

void addAll()

addSingle

 <private> void addSingle(<Object> opt)

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