PHP2Go Javascript Framework

Class LookupChoiceField

Object
   |
   +--Field
         |
         +--ComponentField
               |
               +--LookupChoiceField

class LookupChoiceField
extends ComponentField

Defined in form/lookupchoicefield.js


Field Summary
 Object filter
          Filter input field
 Array options
          Used to update and rebuild the options list
 String stringOptions
          Holds the original options list
   
Fields inherited from class ComponentField
componentClass
   
Fields inherited from class Field
fld, id, name, label, type
 
Constructor Summary
LookupChoiceField (<String> id)
            The LookupChoiceField class is a component composed by a select input and a text input, which can be used to filter the select options
 
Method Summary
 void clear()
           Unselect all selected options in the list
 Object getValue()
           Returns the selected option's value
 void initializeList()
           Read all list options to an internal class member
 void rebuildList()
           Rebuilds the list using its original options
 void setDisabled(<Boolean> b)
           Disables/enables the component
 void setup()
           Initializes the component's properties and event listeners
 void setValue(<String> val)
           Define the list selected option
 void updateList()
           Updates the list contents based on the current filter value.
 
Methods inherited from class ComponentField
raiseEvent
   
Methods inherited from class Field
getFormElement, getMask, isEmpty, enable, disable, focus, beforeFocus, serialize
 

Field Detail

filter

Object filter

options

Array options

stringOptions

String stringOptions

Constructor Detail

LookupChoiceField

LookupChoiceField(<String> id)

Method Detail

clear

void clear()

getValue

Object getValue()

initializeList

void initializeList()

rebuildList

void rebuildList()

setDisabled

void setDisabled(<Boolean> b)

setup

void setup()

setValue

void setValue(<String> val)

updateList

void updateList()

PHP2Go Javascript Framework

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