Packages:
default
System
System.Caching
System.Collections
System.Data
System.Data.ActiveRecord
System.Data.ActiveRecord.Relations
System.Data.ActiveRecord.Scaffold
System.Data.ActiveReecord.Scaffold.InputBuilder
System.Data.Commom.Sqlite
System.Data.Common
System.Data.Common.Mssql
System.Data.Common.Mysql
System.Data.Common.Oracle
System.Data.Common.Pgsql
System.Data.Common.Sqlite
System.Data.DataGateway
System.Data.SqlMap
System.Data.SqlMap.Configuration
System.Data.SqlMap.Statements
System.Exceptions
System.I18N
System.IO
System.Security
System.Util
System.Web
System.Web.Services
System.Web.UI
System.Web.UI.ActiveControls
System.Web.UI.WebControls
System.Web.UI.WebControls.assets
System.Xml


Classes:
Keyword

Class TActiveControlAdapter

TComponent
   |
   --TApplicationComponent
      |
      --TControlAdapter
         |
         --TActiveControlAdapter

Direct Known Sub-classes:

TActiveControlAdapter class.

Customize the parent TControl class for active control classes. TActiveControlAdapter instantiates a common base active control class throught the BaseActiveControl property. The type of BaseActiveControl can be provided in the second parameter in the constructor. Default is TBaseActiveControl or TBaseActiveCallbackControl if the control adapted implements ICallbackEventHandler.

TActiveControlAdapter will tracking viewstate changes to update the corresponding client-side properties.

Since: 3.1
Author: Wei Zhuo <weizhuo[at]gmail[dot]com>

Constructor Summary
public
__construct Array
Constructor.

Method Summary
TBaseActiveControl
protected  boolean
TCallbackPageStateTracker
void
onLoad ( mixed $param)
Starts viewstate tracking if necessary after when controls has been loaded
void
render ( mixed $writer)
Renders the callback client scripts.
protected  void
Register the callback clientscripts and sets the post loader IDs.
void
Saves additional persistent control state. Respond to viewstate changes if necessary.
void
protected  void
setBaseControlClass ( string $type)
Methods Inherited From TControlAdapter
TControlAdapter::createChildControls(), TControlAdapter::getControl(), TControlAdapter::getPage(), TControlAdapter::loadState(), TControlAdapter::onInit(), TControlAdapter::onLoad(), TControlAdapter::onPreRender(), TControlAdapter::onUnload(), TControlAdapter::render(), TControlAdapter::renderChildren(), TControlAdapter::saveState()
Methods Inherited From TApplicationComponent
TApplicationComponent::getApplication(), TApplicationComponent::getRequest(), TApplicationComponent::getResponse(), TApplicationComponent::getService(), TApplicationComponent::getSession(), TApplicationComponent::getUser(), TApplicationComponent::publishAsset(), TApplicationComponent::publishFilePath()
Methods 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::__get(), TComponent::__set()

Constructor Details

__construct

public __construct Array

Constructor.


Method Details

getBaseActiveControl

public TBaseActiveControl getBaseActiveControl ()

Output
TBaseActiveControl Common active control options.
Exception

getIsTrackingPageState

protected boolean getIsTrackingPageState ()

Output
boolean true if the viewstate needs to be tracked.
Exception

getStateTracker

public TCallbackPageStateTracker getStateTracker ()

Output
TCallbackPageStateTracker state tracker.
Exception

onLoad

public void onLoad (mixed $param )

Starts viewstate tracking if necessary after when controls has been loaded

Input
mixed$param
Output
Exception

render

public void render (mixed $writer )

Renders the callback client scripts.

Input
mixed$writer
Output
Exception

renderCallbackClientScripts

protected void renderCallbackClientScripts ()

Register the callback clientscripts and sets the post loader IDs.

Output
Exception

saveState

public void saveState ()

Saves additional persistent control state. Respond to viewstate changes if necessary.

Output
Exception

setBaseActiveControl

public void setBaseActiveControl (TBaseActiveControl $control )

Input
TBaseActiveControl$controlchange base active control
Output
Exception

setBaseControlClass

protected void setBaseControlClass (string $type )

Input
string$typebase active control instance
Output
Exception