summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TRepeatInfo.php
diff options
context:
space:
mode:
authorxue <>2006-01-14 06:56:13 +0000
committerxue <>2006-01-14 06:56:13 +0000
commitf8259bb73731552eb77dcd1254d711507e4932c4 (patch)
tree4faa0c94c90e870f3070d0d4bb98ea85cc5513f4 /framework/Web/UI/WebControls/TRepeatInfo.php
parent5a63c2c1989ed9fdcf8fbe00ec8161934768daf3 (diff)
TDataList completed. A preliminary demo added.
Diffstat (limited to 'framework/Web/UI/WebControls/TRepeatInfo.php')
-rw-r--r--framework/Web/UI/WebControls/TRepeatInfo.php41
1 files changed, 41 insertions, 0 deletions
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
@@ -72,6 +72,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
*/
private $_repeatColumns=0;
@@ -85,6 +93,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.
*/
public function getRepeatColumns()