summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TWebControl.php
diff options
context:
space:
mode:
authorwei <>2007-01-25 05:49:22 +0000
committerwei <>2007-01-25 05:49:22 +0000
commit682f7ef6933f4ad485baedddf7a30367d003d7bf (patch)
treef0eb02ab8373f481b212b5406bfdb95e48b03b10 /framework/Web/UI/WebControls/TWebControl.php
parent9b4174135679398eaed518db99f3c72545aa3876 (diff)
Fixed #502
Diffstat (limited to 'framework/Web/UI/WebControls/TWebControl.php')
-rw-r--r--framework/Web/UI/WebControls/TWebControl.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/framework/Web/UI/WebControls/TWebControl.php b/framework/Web/UI/WebControls/TWebControl.php
index a45bab05..78c1aa98 100644
--- a/framework/Web/UI/WebControls/TWebControl.php
+++ b/framework/Web/UI/WebControls/TWebControl.php
@@ -194,6 +194,22 @@ class TWebControl extends TControl
}
/**
+ * @param TDisplayStyle display style of the control, default is TDisplayStyle::Fixed
+ */
+ public function setDisplay($value)
+ {
+ $this->getStyle()->setDisplayStyle($value);
+ }
+
+ /**
+ * @return TDisplayStyle display style of the control, default is TDisplayStyle::Fixed
+ */
+ public function getDisplay()
+ {
+ return $this->getStyle()->getDisplayStyle();
+ }
+
+ /**
* @param string the css class of the control
*/
public function setCssClass($value)