Class \Prado\Web\UI\ActiveControls\TActiveTextBox
TActiveTextBox class.
TActiveTextBox allows the \Prado\Web\UI\ActiveControls\setText property of the textbox to be changed during callback. When \Prado\Web\UI\ActiveControls\setAutoPostBack property is true, changes to the textbox contents will perform a callback request causing \Prado\Web\UI\ActiveControls\onTextChanged to be fired first followed by \Prado\Web\UI\ActiveControls\onCallback event.
Class hierarchy
- \Prado\Web\UI\ActiveControls\TActiveTextBox implements IActiveControl, ICallbackEventHandler
- \Prado\Web\UI\WebControls\TTextBox implements IPostBackDataHandler, IValidatable, IDataRenderer
- \Prado\Web\UI\WebControls\TWebControl implements IStyleable
- \Prado\Web\UI\TControl implements IRenderable, IBindable
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 3.1
public
|
__construct() : mixed
Creates a new callback control, sets the adapter to
TActiveControlAdapter. If you override this class, be sure to set the
adapter appropriately by, for example, by calling this constructor.
|
public
|
|
public
|
|
public
|
onCallback(TCallbackEventParameter $param) : mixed
This method is invoked when a callback is requested. The method raises
'OnCallback' event to fire up the event handlers. If you override this
method, be sure to call the parent implementation so that the event
handler can be invoked.
|
public
|
raiseCallbackEvent(TCallbackEventParameter $param) : mixed
Raises the callback event. This method is required by {@see
ICallbackEventHandler} interface.
This method is mainly used by framework and control developers. |
public
|
setText(string $value) : mixed
Client-side Text property can only be updated after the OnLoad stage.
|
protected
|
addAttributesToRender(mixed $writer) : mixed
Ensure that the ID attribute is rendered and registers the javascript code
for initializing the active control.
|
protected
|
getClientClassName() : string
Gets the name of the javascript class responsible for performing postback for this control.
This method overrides the parent implementation. |
protected
|
renderClientControlScript(mixed $writer) : mixed
Override parent implementation, no javascript is rendered here instead
the javascript required for active control is registered in {@see addAttributesToRender}.
|