From 0aaa8b5ef02479653c0a532d9249b423ef34c7ca Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 5 Feb 2007 02:24:34 +0000 Subject: Added IStyleable and fixed style rendering issue about TDataList. --- framework/Web/UI/WebControls/TWebControl.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'framework/Web/UI/WebControls/TWebControl.php') 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. @@ -283,6 +283,14 @@ class TWebControl extends TControl throw new TInvalidDataValueException('webcontrol_style_invalid',get_class($this)); } + /** + * Removes all style data. + */ + public function clearStyle() + { + $this->clearViewState('Style'); + } + /** * @return integer the tab index of the control */ -- cgit v1.2.3