From f8259bb73731552eb77dcd1254d711507e4932c4 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 14 Jan 2006 06:56:13 +0000 Subject: TDataList completed. A preliminary demo added. --- framework/Web/UI/WebControls/TRepeatInfo.php | 41 ++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'framework/Web/UI/WebControls/TRepeatInfo.php') diff --git a/framework/Web/UI/WebControls/TRepeatInfo.php b/framework/Web/UI/WebControls/TRepeatInfo.php index ce6efe8d..5f4fb825 100644 --- a/framework/Web/UI/WebControls/TRepeatInfo.php +++ b/framework/Web/UI/WebControls/TRepeatInfo.php @@ -71,6 +71,14 @@ interface IRepeatInfoUser */ class TRepeatInfo extends TComponent { + /** + * @var string caption of the table used to organize the repeated items + */ + private $_caption=''; + /** + * @var string alignment of the caption of the table used to organize the repeated items + */ + private $_captionAlign='NotSet'; /** * @var integer number of columns that the items should be arranged in */ @@ -84,6 +92,39 @@ class TRepeatInfo extends TComponent */ private $_repeatLayout='Table'; + /** + * @return string caption of the table layout + */ + public function getCaption() + { + return $this->_caption; + } + + /** + * @param string caption of the table layout + */ + public function setCaption($value) + { + $this->_caption=$value; + } + + /** + * @return string alignment of the caption of the table layout. Defaults to 'NotSet'. + */ + public function getCaptionAlign() + { + return $this->_captionAlign; + } + + /** + * @return string alignment of the caption of the table layout. + * Valid values include 'NotSet','Top','Bottom','Left','Right'. + */ + public function setCaptionAlign($value) + { + $this->_captionAlign=TPropertyValue::ensureEnum($value,array('NotSet','Top','Bottom','Left','Right')); + } + /** * @return integer the number of columns that the repeated items should be displayed in. Defaults to 0, meaning not set. */ -- cgit v1.2.3