TWebControl class
TWebControl is the base class for controls that share a common set of UI-related properties and methods. TWebControl-derived controls are usually associated with HTML tags. They thus have tag name, attributes and body contents. You can override getTagName to specify the tag name, addAttributesToRender to specify the attributes to be rendered, and renderContents to customize the body content rendering. TWebControl encapsulates a set of properties related with CSS style fields, such as BackColor, BorderWidth, etc.
Subclasses of TWebControl typically needs to override addAttributesToRender and renderContents. The former is used to render the attributes of the HTML tag associated with the control, while the latter is to render the body contents enclosed within the HTML tag.
Located in /Web/UI/WebControls/TWebControl.php (line 41)
TComponent | --TApplicationComponent | --TControl | --TWebControl
| Class | Description |
|---|---|
| TButton | TButton class |
| TCheckBox | TCheckBox class |
| TDataBoundControl | TDataBoundControl class. |
| TDataListItem | TDataListItem class |
| TFileUpload | TFileUpload class |
| THyperLink | THyperLink class |
| TImage | TImage class |
| TInlineFrame | TInlineFrame class |
| TJavascriptLogger | TJavascriptLogger class. |
| TLabel | TLabel class |
| TLinkButton | TLinkButton class |
| TPanel | TPanel class |
| TTable | TTable class |
| TTableCell | TTableCell class. |
| TTableRow | TTableRow class. |
| TTextBox | TTextBox class |
| TTextProcessor | TTextProcessor class. |
| TValidationSummary | TValidationSummary class |
| TWizard | Class TWizard. |
Adds attribute name-value pairs to renderer.
By default, the method will render 'id', 'accesskey', 'disabled', 'tabindex', 'title' and all custom attributes. The method can be overriden to provide customized attribute rendering.
Copies basic control attributes from another control.
Properties including AccessKey, ToolTip, TabIndex, Enabled and Attributes are copied.
Creates a style object to be used by the control.
This method may be overriden by controls to provide customized style.
Returns the tag name used for this control.
By default, the tag name is 'span'. You can override this method to provide customized tag names.
Renders the control.
This method overrides the parent implementation by replacing it with the following sequence:
Renders the openning tag for the control (including attributes)
Renders the body content enclosed between the control tag.
By default, child controls and text strings will be rendered. You can override this method to provide customized content rendering.
Renders the closing tag for the control
Sets the access key of the control.
Only one-character string can be set, or an exception will be raised. Pass in an empty string if you want to disable access key.
Sets the css style string of the control.
The style string will be prefixed to the styles set via other control properties (e.g. Height, Width).
Sets the tab index of the control.
Pass 0 if you want to disable tab index.
Sets the tooltip of the control.
Pass an empty string if you want to disable tooltip.
Inherited From TControl
TControl::__construct()
TControl::addedControl()
TControl::addParsedObject()
TControl::applyStyleSheetSkin()
TControl::autoBindProperty()
TControl::autoDataBindProperties()
TControl::bindProperty()
TControl::broadcastEvent()
TControl::broadcastEventInternal()
TControl::bubbleEvent()
TControl::clearChildState()
TControl::clearControlState()
TControl::clearNamingContainer()
TControl::clearViewState()
TControl::createChildControls()
TControl::createControlCollection()
TControl::createdOnTemplate()
TControl::dataBind()
TControl::dataBindChildren()
TControl::dataBindProperties()
TControl::ensureChildControls()
TControl::findControl()
TControl::findControlsByID()
TControl::findControlsByType()
TControl::focus()
TControl::getAdapter()
TControl::getAllowChildControls()
TControl::getAttribute()
TControl::getAttributes()
TControl::getChildControlsCreated()
TControl::getClientID()
TControl::getControls()
TControl::getControlStage()
TControl::getControlState()
TControl::getEnabled()
TControl::getEnableTheming()
TControl::getEnableViewState()
TControl::getHasAdapter()
TControl::getHasAttributes()
TControl::getHasControls()
TControl::getID()
TControl::getNamingContainer()
TControl::getPage()
TControl::getParent()
TControl::getRegisteredObject()
TControl::getSkinID()
TControl::getSourceTemplateControl()
TControl::getTemplateControl()
TControl::getUniqueID()
TControl::getViewState()
TControl::getVisible()
TControl::hasAttribute()
TControl::initRecursive()
TControl::isDescendentOf()
TControl::isObjectRegistered()
TControl::loadRecursive()
TControl::loadState()
TControl::loadStateRecursive()
TControl::onDataBinding()
TControl::onInit()
TControl::onLoad()
TControl::onPreRender()
TControl::onUnload()
TControl::preRenderRecursive()
TControl::raiseBubbleEvent()
TControl::registerObject()
TControl::removeAttribute()
TControl::removedControl()
TControl::render()
TControl::renderChildren()
TControl::renderControl()
TControl::saveState()
TControl::saveStateRecursive()
TControl::setAdapter()
TControl::setAttribute()
TControl::setChildControlsCreated()
TControl::setControlStage()
TControl::setControlState()
TControl::setEnabled()
TControl::setEnableTheming()
TControl::setEnableViewState()
TControl::setID()
TControl::setPage()
TControl::setSkinID()
TControl::setTemplateControl()
TControl::setViewState()
TControl::setVisible()
TControl::traverseChildControls()
TControl::unbindProperty()
TControl::unloadRecursive()
TControl::unregisterObject()
TControl::__get()
Inherited From TApplicationComponent
TApplicationComponent::getApplication()
TApplicationComponent::getRequest()
TApplicationComponent::getResponse()
TApplicationComponent::getService()
TApplicationComponent::getSession()
TApplicationComponent::getUser()
TApplicationComponent::publishAsset()
TApplicationComponent::publishFilePath()
Inherited From TComponent
TComponent::attachEventHandler()
TComponent::canGetProperty()
TComponent::canSetProperty()
TComponent::detachEventHandler()
TComponent::evaluateExpression()
TComponent::evaluateStatements()
TComponent::getEventHandlers()
TComponent::getSubProperty()
TComponent::hasEvent()
TComponent::hasEventHandler()
TComponent::hasProperty()
TComponent::raiseEvent()
TComponent::setSubProperty()
TComponent::__get()
TComponent::__set()
Documentation generated on Sun, 04 Jun 2006 19:00:39 -0400 by phpDocumentor 1.3.0RC4