WACT_COMPONENT
[ class tree: WACT_COMPONENT ] [ index: WACT_COMPONENT ] [ all elements ]

Class: InputAutoCompleteComponent

Source Location: /framework/template/components/form/inputautocomplete.inc.php

MemberRule

Class Overview

Component
   |
   --TagComponent
      |
      --FormElement
         |
         --InputFormElement
            |
            --InputAutoCompleteComponent

Runtime component for input text fields with autocompletion. Allows a list of autocompete words to be provided.

Variables

Methods


Inherited Variables

Inherited Methods

Class: InputFormElement

InputFormElement::renderAttributes()
Overrides then calls with the parent renderAttributes() method.

Class: FormElement

FormElement::getAttribute()
Overrides TagComponent method so that requests for the value of the attribute named "value" return the value from the FormComponent DataSource, if it exists.
FormElement::getDisplayName()
Returns a value for the name attribute.
FormElement::getValue()
Returns the value of the form element (it's value in the form DataSource)
FormElement::hasErrors()
Returns true if the form element is in an error state (typically this is called for you by controllers)
FormElement::setAttribute()
Overrides TagComponent method so keep value attribute and value in form DataSource in sync
FormElement::setError()
Puts the element into the error state and assigns the error class or
FormElement::setValue()
Sets the value of the form element (it's value in the form DataSource)

Class: TagComponent

TagComponent::getAttribute()
Returns the value of an attribute, given it's name
TagComponent::getCanonicalAttributeName()
returns the case-preserving, case-insensitive name of an attribute
TagComponent::getClientId()
Returns the value of the ID attribute
TagComponent::hasAttribute()
Check to see whether a named attribute exists
TagComponent::removeAttribute()
Remove an attribute from the list
TagComponent::renderAttributes()
Writes the contents of the attributes to the screen, using htmlspecialchars to convert entities in values.
TagComponent::setAttribute()
Sets an attribute

Class: Component

Component::addChild()
Adds a reference to a child component to this component, using it's ID attribute as the child array key
Component::findChild()
Returns a child component given it's ID.
Component::findChildByClass()
Returns the first child component matching the supplied WACT_TEMPLATE Component PHP class name
Component::findParentByClass()
Recursively searches through parents of this component searching for a given WACT_TEMPLATE component PHP class name
Component::getChild()
Same as find child, except raises error if child is not found
Component::getServerId()
Returns the ID of the component, as defined in the template tags ID attribute
Component::render()
Outputs the component, rendering any child components as well This method will only ever be called on components that support Dynamic rendering.
Component::setChildDataSource()
set the data source of a child component, or raise an error if the child is not found.

Class Details

Runtime component for input text fields with autocompletion. Allows a list of autocompete words to be provided.

Use a MemberRule if you want to validate that the data provided was in the list (there's no guarantees - this is JavaScript)

access:  public
see:  MemberRule

Class Variables


$autocompletelist = array()

var:  list of words for autocompletion
access:  private
Type:   array

Class Methods


method getAutoCompleteList

Returns the autocomplete list (called from the template)

array getAutoCompleteList( )

API Tags:

return:  list of words to autocomplete against
access:  public

method setAutoCompleteList

Set the autocomplete list

void setAutoCompleteList( array $list)

API Tags:

access:  public

Parameters:

array   $list   list of words to autocomplete against
WACT: Copyright 2003 Procata, Inc. Released under the LGPL license (http://www.gnu.org/copyleft/lesser.html)
Documentation generated on Sun, 28 Nov 2004 19:47:24 -0800 by phpDocumentor 1.2.3