summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TWebControl.php
diff options
context:
space:
mode:
authorxue <>2007-02-05 02:24:34 +0000
committerxue <>2007-02-05 02:24:34 +0000
commit0aaa8b5ef02479653c0a532d9249b423ef34c7ca (patch)
tree49bc696f3039407d0034bbdd02603fed17d7d263 /framework/Web/UI/WebControls/TWebControl.php
parent7f26be1e2ca7cc1d48a0627018eb287330a3bd90 (diff)
Added IStyleable and fixed style rendering issue about TDataList.
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()