Class TActiveListControlAdapter

Description

Implements interfaces:

TActiveListControlAdapter class.

Adapte the list controls to allows the selections on the client-side to be altered during callback response.

  • author: Wei Zhuo <weizhuo[at]gmail[dot]com>
  • version: $Id: TActiveListControlAdapter.php 3052 2011-10-21 09:06:19Z ctrlaltca@gmail.com $
  • since: 3.1

Located in /Web/UI/ActiveControls/TActiveListControlAdapter.php (line 30)

TComponent
   |
   --TApplicationComponent
      |
      --TControlAdapter
         |
         --TActiveControlAdapter
            |
            --TActiveListControlAdapter
Method Summary
boolean canUpdateClientSide ()
void clearSelection ()
void setSelectedIndex (integer $index)
void setSelectedIndices (array $indices)
void setSelectedValue (string $value)
void setSelectedValues (array $values)
void updateListItems ()
Variables

Inherited Variables

Inherited from TControlAdapter

TControlAdapter::$_control
Methods
canUpdateClientSide (line 35)
  • return: true if can update client-side attributes.
  • access: protected
boolean canUpdateClientSide ()
clearSelection (line 128)

Clears all existing selections on the client side.

  • access: public
void clearSelection ()

Implementation of:
IListControlAdapter::clearSelection()
Clears all existing selections on the client side.
setSelectedIndex (line 44)

Selects an item based on zero-base index on the client side.

  • access: public
void setSelectedIndex (integer $index)
  • integer $index: the index (zero-based) of the item to be selected

Implementation of:
IListControlAdapter::setSelectedIndex()
Selects an item based on zero-base index on the client side.
setSelectedIndices (line 67)

Selects a list of item based on zero-base indices on the client side.

  • access: public
void setSelectedIndices (array $indices)
  • array $indices: list of index of items to be selected

Implementation of:
IListControlAdapter::setSelectedIndices()
Selects a list of item based on zero-base indices on the client side.
setSelectedValue (line 97)

Sets selection by item value on the client side.

  • access: public
void setSelectedValue (string $value)
  • string $value: the value of the item to be selected.

Implementation of:
IListControlAdapter::setSelectedValue()
Sets selection by item value on the client side.
setSelectedValues (line 111)

Sets selection by a list of item values on the client side.

  • access: public
void setSelectedValues (array $values)
  • array $values: list of the selected item values

Implementation of:
IListControlAdapter::setSelectedValues()
Sets selection by a list of item values on the client side.
updateListItems (line 147)

Update the client-side list options.

  • access: public
void updateListItems ()

Inherited Methods

Inherited From TActiveControlAdapter

TActiveControlAdapter::__construct()
TActiveControlAdapter::getBaseActiveControl()
TActiveControlAdapter::getIsTrackingPageState()
TActiveControlAdapter::getStateTracker()
TActiveControlAdapter::onLoad()
TActiveControlAdapter::onPreRender()
TActiveControlAdapter::render()
TActiveControlAdapter::renderCallbackClientScripts()
TActiveControlAdapter::saveState()
TActiveControlAdapter::setBaseActiveControl()
TActiveControlAdapter::setBaseControlClass()

Inherited From TControlAdapter

TControlAdapter::__construct()
TControlAdapter::createChildControls()
TControlAdapter::getControl()
TControlAdapter::getPage()
TControlAdapter::loadState()
TControlAdapter::onInit()
TControlAdapter::onLoad()
TControlAdapter::onPreRender()
TControlAdapter::onUnload()
TControlAdapter::render()
TControlAdapter::renderChildren()
TControlAdapter::saveState()

Inherited From TApplicationComponent

TApplicationComponent::getApplication()
TApplicationComponent::getRequest()
TApplicationComponent::getResponse()
TApplicationComponent::getService()
TApplicationComponent::getSession()
TApplicationComponent::getUser()
TApplicationComponent::publishAsset()
TApplicationComponent::publishFilePath()

Inherited From TComponent

TComponent::addParsedObject()
TComponent::attachEventHandler()
TComponent::canGetProperty()
TComponent::canSetProperty()
TComponent::createdOnTemplate()
TComponent::detachEventHandler()
TComponent::evaluateExpression()
TComponent::evaluateStatements()
TComponent::getEventHandlers()
TComponent::getSubProperty()
TComponent::hasEvent()
TComponent::hasEventHandler()
TComponent::hasProperty()
TComponent::raiseEvent()
TComponent::setSubProperty()
TComponent::__call()
TComponent::__get()
TComponent::__set()
TComponent::__sleep()
TComponent::__wakeup()

Documentation generated on Mon, 25 Jun 2012 14:37:05 +0200 by phpDocumentor 1.4.3