summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TWebControl.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/WebControls/TWebControl.php')
-rw-r--r--framework/Web/UI/WebControls/TWebControl.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TWebControl.php b/framework/Web/UI/WebControls/TWebControl.php
index 33393843..9120ae0e 100644
--- a/framework/Web/UI/WebControls/TWebControl.php
+++ b/framework/Web/UI/WebControls/TWebControl.php
@@ -38,7 +38,7 @@ Prado::using('System.Web.UI.WebControls.TWebControlAdapter');
* @package System.Web.UI.WebControls
* @since 3.0
*/
-class TWebControl extends TControl
+class TWebControl extends TControl implements IStyleable
{
/**
* Copies basic control attributes from another control.
@@ -284,6 +284,14 @@ class TWebControl extends TControl
}
/**
+ * Removes all style data.
+ */
+ public function clearStyle()
+ {
+ $this->clearViewState('Style');
+ }
+
+ /**
* @return integer the tab index of the control
*/
public function getTabIndex()