diff options
author | xue <> | 2006-05-04 13:45:09 +0000 |
---|---|---|
committer | xue <> | 2006-05-04 13:45:09 +0000 |
commit | ad005a0cfb526a41d04dd5260df654845ef68f5b (patch) | |
tree | 393ebcc8313e9bffef64c06406553c12348f80ff /framework/Web/UI/WebControls/TTableRow.php | |
parent | 49ccf41324a2c87b20b84f72355b79d92d6f3d0c (diff) |
Added table section support.
Diffstat (limited to 'framework/Web/UI/WebControls/TTableRow.php')
-rw-r--r-- | framework/Web/UI/WebControls/TTableRow.php | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/TTableRow.php b/framework/Web/UI/WebControls/TTableRow.php index daf921ce..b0e0bfbe 100644 --- a/framework/Web/UI/WebControls/TTableRow.php +++ b/framework/Web/UI/WebControls/TTableRow.php @@ -11,10 +11,9 @@ */
/**
- * Includes TTableCell and TTableHeaderCell classes
+ * Includes TTableCell class
*/
Prado::using('System.Web.UI.WebControls.TTableCell');
-Prado::using('System.Web.UI.WebControls.TTableHeaderCell');
/**
* TTableRow class.
@@ -122,6 +121,23 @@ class TTableRow extends TWebControl }
/**
+ * @return string location of a row in a table. Defaults to 'Body'.
+ */
+ public function getTableSection()
+ {
+ return $this->getViewState('TableSection','Body');
+ }
+
+ /**
+ * @param string location of a row in a table. Valid values include 'Header', 'Footer' and 'Body'.
+ */
+ public function setTableSection($value)
+ {
+ $value=TPropertyValue::ensureEnum($value,'Header','Body','Footer');
+ $this->setViewState('TableSection',$value,'Body');
+ }
+
+ /**
* Renders body contents of the table row
* @param THtmlWriter writer for the rendering purpose
*/
|