## Interface IButtonControl

Description

IButtonControl interface

IButtonControl specifies the common properties and events that must be implemented by a button control, such as TButton, TLinkButton, TImageButton.

- since: 3.0
- version: $Id: TControl.php 2522 2008-10-13 21:40:53Z mikl $
- author: Qiang Xue <qiang.xue@gmail.com>

Located in /Web/UI/TControl.php (line 2087)

Method Summary
boolean getCausesValidation ()
string getCommandName ()
string getCommandParameter ()
boolean getIsDefaultButton ()
string getText ()
string getValidationGroup ()
void onClick (TEventParameter $param)
void onCommand (TCommandEventParameter $param)
void setCausesValidation (boolean $value)
void setCommandName (string $value)
void setCommandParameter (string $value)
void setIsDefaultButton (boolean $value)
void setText (string $value)
void setValidationGroup (string $value)
Methods
getCausesValidation (line 2102)

- return: whether postback event trigger by this button will cause input validation
- access: public

boolean getCausesValidation ()
getCommandName (line 2112)

- return: the command name associated with the OnCommand event.
- access: public

string getCommandName ()
getCommandParameter (line 2122)

- return: the parameter associated with the OnCommand event
- access: public

string getCommandParameter ()
getIsDefaultButton (line 2159)

- return: true if this button is registered as a default button for a panel.
- access: public

boolean getIsDefaultButton ()
getText (line 2092)

- return: caption of the button
- access: public

string getText ()
getValidationGroup (line 2132)

- return: the group of validators which the button causes validation upon postback
- access: public

string getValidationGroup ()
onClick (line 2143)

Raises OnClick event.

- access: public

void onClick (TEventParameter $param)

- TEventParameter $param: event parameter to be passed to the event handlers

onCommand (line 2149)

Raises OnCommand event.

- access: public

void onCommand (TCommandEventParameter $param)

- TCommandEventParameter $param: event parameter to be passed to the event handlers

setCausesValidation (line 2107)

- access: public

void setCausesValidation (boolean $value)

- boolean $value: whether postback event trigger by this button will cause input validation

setCommandName (line 2117)

- access: public

void setCommandName (string $value)

- string $value: the command name associated with the OnCommand event.

setCommandParameter (line 2127)

- access: public

void setCommandParameter (string $value)

- string $value: the parameter associated with the OnCommand event.

setIsDefaultButton (line 2154)

- access: public

void setIsDefaultButton (boolean $value)

- boolean $value: set by a panel to register this button as the default button for the panel.

setText (line 2097)

- access: public

void setText (string $value)

- string $value: caption of the button

setValidationGroup (line 2137)

- access: public

void setValidationGroup (string $value)

- string $value: the group of validators which the button causes validation upon postback

Documentation generated on Mon, 22 Feb 2010 12:17:12 +0000 by phpDocumentor 1.3.0RC4