Class TCallbackPageStateTracker

Description

TCallbackPageStateTracker class.

Tracking changes to the page state during callback.

  • author: Wei Zhuo <weizhuo[at]gmail[dot]com>
  • version: $Id: TActiveControlAdapter.php 3159 2012-06-01 18:01:40Z ctrlaltca $
  • since: 3.1

Located in /Web/UI/ActiveControls/TActiveControlAdapter.php (line 204)


	
			
Method Summary
TCallbackPageStateTracker __construct (TControl $control)
array getChanges ()
void trackChanges ()
void updateAccessKey (string $value)
void updateAttributes (array $attributes)
void updateEnabled (boolean $enable)
void updateStyle (array $style)
void updateTabIndex (integer $value)
void updateToolTip (string $value)
void updateVisible (boolean $visible)
Methods
Constructor __construct (line 227)

Constructor. Add a set of default states to track.

  • access: public
TCallbackPageStateTracker __construct (TControl $control)
addStatesToTrack (line 244)

Add a list of view states to track. Each state is added to the StatesToTrack property with the view state name as key.

The value should be an array with two enteries. The first entery is the name of the class that will calculate the state differences. The second entry is a php function/method callback that handles the changes in the viewstate.

  • access: protected
void addStatesToTrack ()
client (line 309)
  • return: callback client scripting
  • access: protected
getChanges (line 280)
  • return: list of viewstate and the changed data.
  • access: protected
array getChanges ()
getStatesToTrack (line 259)
  • return: list of viewstates to track.
  • access: protected
TMap getStatesToTrack ()
respondToChanges (line 300)

For each of the changes call the corresponding change handlers.

  • access: public
void respondToChanges ()
trackChanges (line 268)

Start tracking view state changes. The clone function on objects are called for those viewstate having an object as value.

  • access: public
void trackChanges ()
updateAccessKey (line 336)

Updates the modifier access key

  • access: protected
void updateAccessKey (string $value)
  • string $value: access key
updateAttributes (line 379)

Updates/adds a list of attributes on the control.

  • access: protected
void updateAttributes (array $attributes)
  • array $attributes: list of attribute name-value pairs.
updateEnabled (line 358)

Enables or Disables the control on the client-side.

  • access: protected
void updateEnabled (boolean $enable)
  • boolean $enable: true to enable the control, false to disable.
updateStyle (line 367)

Updates the CSS style on the control on the client-side.

  • access: protected
void updateStyle (array $style)
  • array $style: list of new CSS style declarations.
updateTabIndex (line 327)

Updates the tab index.

  • access: protected
void updateTabIndex (integer $value)
  • integer $value: tab index
updateToolTip (line 318)

Updates the tooltip.

  • access: protected
void updateToolTip (string $value)
  • string $value: new tooltip
updateVisible (line 346)

Hides or shows the control on the client-side. The control must be already rendered on the client-side.

  • access: protected
void updateVisible (boolean $visible)
  • boolean $visible: true to show the control, false to hide.

Documentation generated on Mon, 25 Jun 2012 14:36:53 +0200 by phpDocumentor 1.4.3