PHP2Go Javascript Framework

Class AutoCompleteField

Object
   |
   +--Field
         |
         +--ComponentField
               |
               +--AutoCompleteField

class AutoCompleteField
extends ComponentField

Defined in form/autocompletefield.js


Field Summary
 Object autoComplete
          Holds the div element used to show autocomplete choices
 Number choiceCount
          Last count of choices
 Array choiceItems
          Last list of available choices
 Boolean choosing
          Indicates a choice is being made
 Boolean fldChanged
          Indicates text field changed
 Object options
          Component settings
 Boolean overChoices
          Flag that indicates mouse is over the choices container
 Boolean selectedIndex
          Index of the current selected choice
   
Fields inherited from class ComponentField
componentClass
   
Fields inherited from class Field
fld, id, name, label, type
 
Constructor Summary
AutoCompleteField (<String> id, <Object> options)
            AutoCompleteField adds autocomplete funcionality to a normal text input.
 
Method Summary
 void blurHandler(<Event> e)
           Gets called when text input looses focus.
 void choiceClickHandler(<Event> e)
           Handles click on choice items
 void choiceHoverHandler(<Event> e)
           Handles mouseover/mouseout events on choice items
 <private>  void chooseByIndex(<Number> idx)
           Choose an available choice from its index
 void clear()
           Clear the component's value
 void disable()
           Disable the component
 Number findLastSeparator()
           Finds the last separator position in the field contents
 void getChoices()
           Retrieve the choices for the current search token.
 String getLastToken()
           Retrieve the search token.
 Object getValue()
           Retrieve the component's value.
 void hideChoices()
           Hide the auto complete choices box
 Boolean isEmpty()
           Check if the component's value is empty
 void keyDownHandler(<Event> e)
           Handles keydown event.
 void keyUpHandler(<Event> e)
           Handles keyup event.
 void mouseHandler(<Event> e)
           Mouse events handler for the choices container.
 <private>  void navigate(<Number> fw)
           Navigate by a given offset in the available choices
 void setup()
           Initializes all options and event handlers
 void setValue(<Object> val)
           Define a new value for the component.
 void showChoices()
           Display a box containing the available choices
 void timerHandler()
           Gets called when the delay after the last typed key is reached.
 <private>  void updateChoices(<String> html)
           Update the choices box contents
 
Methods inherited from class ComponentField
raiseEvent
   
Methods inherited from class Field
getFormElement, getMask, enable, setDisabled, focus, beforeFocus, serialize
 

Field Detail

autoComplete

Object autoComplete

choiceCount

Number choiceCount

choiceItems

Array choiceItems

choosing

Boolean choosing

fldChanged

Boolean fldChanged

options

Object options

overChoices

Boolean overChoices

selectedIndex

Boolean selectedIndex

Constructor Detail

AutoCompleteField

AutoCompleteField(<String> id, <Object> options)

Method Detail

blurHandler

void blurHandler(<Event> e)

choiceClickHandler

void choiceClickHandler(<Event> e)

choiceHoverHandler

void choiceHoverHandler(<Event> e)

chooseByIndex

 <private> void chooseByIndex(<Number> idx)

clear

void clear()

disable

void disable()

findLastSeparator

Number findLastSeparator()

getChoices

void getChoices()

getLastToken

String getLastToken()

getValue

Object getValue()

hideChoices

void hideChoices()

isEmpty

Boolean isEmpty()

keyDownHandler

void keyDownHandler(<Event> e)

keyUpHandler

void keyUpHandler(<Event> e)

mouseHandler

void mouseHandler(<Event> e)

navigate

 <private> void navigate(<Number> fw)

setup

void setup()

setValue

void setValue(<Object> val)

showChoices

void showChoices()

timerHandler

void timerHandler()

updateChoices

 <private> void updateChoices(<String> html)

PHP2Go Javascript Framework

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