Class TCallbackPageStateTracker

Description

TCallbackPageStateTracker class.

Tracking changes to the page state during callback.

  • since: 3.1
  • version: $Id: TActiveControlAdapter.php 1453 2006-10-01 03:09:18Z wei $
  • author: Wei Zhuo <weizhuo[at]gmail[dot]com>

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


	
			
Method Summary
TCallbackPageStateTracker __construct (TControl $control)
void 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 215)

Constructor. Add a set of default states to track.

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

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 297)
  • return: callback client scripting
  • access: protected
getChanges (line 268)
  • access: protected
void getChanges ()
getStatesToTrack (line 247)
  • return: list of viewstates to track.
  • access: protected
TMap getStatesToTrack ()
respondToChanges (line 288)

For each of the changes call the corresponding change handlers.

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

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 324)

Updates the modifier access key

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

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 346)

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 355)

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 315)

Updates the tab index.

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

Updates the tooltip.

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

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 Sun, 30 Sep 2007 19:10:06 -0400 by phpDocumentor 1.3.0RC4