Class 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.
| Constructor Summary |
| public |
Constructor.
|
| Method Summary |
|
TBaseActiveControl
|
|
|
protected
boolean
|
|
|
TCallbackPageStateTracker
|
|
|
void
|
Starts viewstate tracking if necessary after when controls has been loaded
|
|
void
|
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
|
|
| 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 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
Constructor.
|
| Method Details |
getBaseActiveControl
|
getIsTrackingPageState
| protected boolean getIsTrackingPageState |
() |
| Output |
|
boolean
| true if the viewstate needs to be tracked. |
| Exception |
|
getStateTracker
|
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.
|
saveState
Saves additional persistent control state. Respond to viewstate changes if necessary.
|
setBaseActiveControl
|
setBaseControlClass
| protected void setBaseControlClass |
(string $type ) |
| Input |
| string | $type | base active control instance |
| Output |
| Exception |
|
|