From 42df6f47862c2f1495ded49f758dbc46f9d9e930 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 4 May 2006 20:00:46 +0000 Subject: Merge from 3.0 branch till 1023. --- framework/Web/UI/WebControls/TTableRow.php | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'framework/Web/UI/WebControls/TTableRow.php') 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. @@ -121,6 +120,23 @@ class TTableRow extends TWebControl $this->getStyle()->setVerticalAlign($value); } + /** + * @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 -- cgit v1.2.3