diff options
author | xue <> | 2006-02-03 06:11:57 +0000 |
---|---|---|
committer | xue <> | 2006-02-03 06:11:57 +0000 |
commit | 0efe2d3e9e02ada6fe297af823b90fa967de85df (patch) | |
tree | c286c9af063072bf9f9aa6dd0edd6031fb12eef4 /framework/Web/UI/WebControls/TDataGridColumn.php | |
parent | 13b32e41bbda0a22bc0d886841a210dbf7c13b3a (diff) |
Added TCheckBoxColumn.
Diffstat (limited to 'framework/Web/UI/WebControls/TDataGridColumn.php')
-rw-r--r-- | framework/Web/UI/WebControls/TDataGridColumn.php | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/framework/Web/UI/WebControls/TDataGridColumn.php b/framework/Web/UI/WebControls/TDataGridColumn.php index a48efa1d..a5e939ef 100644 --- a/framework/Web/UI/WebControls/TDataGridColumn.php +++ b/framework/Web/UI/WebControls/TDataGridColumn.php @@ -79,11 +79,12 @@ abstract class TDataGridColumn extends TComponent }
/**
+ * @param boolean whether to create a style if previously not existing
* @return TTableItemStyle the style for header
*/
- public function getHeaderStyle()
+ public function getHeaderStyle($createStyle=true)
{
- if(($style=$this->getViewState('HeaderStyle',null))===null)
+ if(($style=$this->getViewState('HeaderStyle',null))===null && $createStyle)
{
$style=new TTableItemStyle;
$this->setViewState('HeaderStyle',$style,null);
@@ -109,11 +110,12 @@ abstract class TDataGridColumn extends TComponent }
/**
+ * @param boolean whether to create a style if previously not existing
* @return TTableItemStyle the style for footer
*/
- public function getFooterStyle()
+ public function getFooterStyle($createStyle=true)
{
- if(($style=$this->getViewState('FooterStyle',null))===null)
+ if(($style=$this->getViewState('FooterStyle',null))===null && $createStyle)
{
$style=new TTableItemStyle;
$this->setViewState('FooterStyle',$style,null);
@@ -122,11 +124,12 @@ abstract class TDataGridColumn extends TComponent }
/**
+ * @param boolean whether to create a style if previously not existing
* @return TTableItemStyle the style for item
*/
- public function getItemStyle()
+ public function getItemStyle($createStyle=true)
{
- if(($style=$this->getViewState('ItemStyle',null))===null)
+ if(($style=$this->getViewState('ItemStyle',null))===null && $createStyle)
{
$style=new TTableItemStyle;
$this->setViewState('ItemStyle',$style,null);
|