Class TDataGridPagerStyle

Description

TDataGridPagerStyle class.

TDataGridPagerStyle specifies the styles available for a datagrid pager.

  • since: 3.0
  • version: $Id: TDataGrid.php 1522 2006-11-27 03:28:24Z xue $
  • author: Qiang Xue <qiang.xue@gmail.com>

Located in /Web/UI/WebControls/TDataGrid.php (line 2017)

TComponent
   |
   --TStyle
      |
      --TPanelStyle
         |
         --TDataGridPagerStyle
Method Summary
void copyFrom (TStyle $style)
string getNextPageText ()
integer getPageButtonCount ()
string getPrevPageText ()
boolean getVisible ()
void mergeWith (TStyle $style)
void reset ()
void setMode (TDataGridPagerMode $value)
void setNextPageText (string $value)
void setPageButtonCount (integer $value)
void setPrevPageText (string $value)
void setVisible (boolean $value)
Methods
copyFrom (line 2163)

Copies the fields in a new style to this style.

If a style field is set in the new style, the corresponding field in this style will be overwritten.

  • access: public
void copyFrom (TStyle $style)
  • TStyle $style: the new style

Redefinition of:
TPanelStyle::copyFrom()
Copies the fields in a new style to this style.
getButtonType (line 2046)
  • return: the type of command button. Defaults to TDataGridPagerButtonType::LinkButton.
  • access: public
TDataGridPagerButtonType getButtonType ()
getMode (line 2030)
  • return: pager mode. Defaults to TDataGridPagerMode::NextPrev.
  • access: public
TDataGridPagerMode getMode ()
getNextPageText (line 2062)
  • return: text for the next page button. Defaults to '>'.
  • access: public
string getNextPageText ()
getPageButtonCount (line 2094)
  • return: maximum number of pager buttons to be displayed. Defaults to 10.
  • access: public
integer getPageButtonCount ()
getPosition (line 2113)
  • return: where the pager is to be displayed. Defaults to TDataGridPagerPosition::Bottom.
  • access: public
TDataGridPagerPosition getPosition ()
getPrevPageText (line 2078)
  • return: text for the previous page button. Defaults to '<'.
  • access: public
string getPrevPageText ()
getVisible (line 2129)
  • return: whether the pager is visible. Defaults to true.
  • access: public
boolean getVisible ()
mergeWith (line 2191)

Merges the style with a new one.

If a style field is not set in this style, it will be overwritten by the new one.

  • access: public
void mergeWith (TStyle $style)
  • TStyle $style: the new style

Redefinition of:
TPanelStyle::mergeWith()
Merges the style with a new one.
reset (line 2145)

Resets the style to the original empty state.

  • access: public
void reset ()

Redefinition of:
TPanelStyle::reset()
Sets the style attributes to default values.
setButtonType (line 2054)
  • access: public
void setButtonType (TDataGridPagerButtonType $value)
setMode (line 2038)
  • access: public
void setMode (TDataGridPagerMode $value)
setNextPageText (line 2070)
  • access: public
void setNextPageText (string $value)
  • string $value: text for the next page button.
setPageButtonCount (line 2103)
  • access: public
  • throws: TInvalidDataValueException if the value is less than 1.
void setPageButtonCount (integer $value)
  • integer $value: maximum number of pager buttons to be displayed
setPosition (line 2121)
  • access: public
void setPosition (TDataGridPagerPosition $value)
setPrevPageText (line 2086)
  • access: public
void setPrevPageText (string $value)
  • string $value: text for the next page button.
setVisible (line 2137)
  • access: public
void setVisible (boolean $value)
  • boolean $value: whether the pager is visible.

Inherited Methods

Inherited From TPanelStyle

TPanelStyle::addAttributesToRender()
TPanelStyle::copyFrom()
TPanelStyle::getBackImageUrl()
TPanelStyle::getDirection()
TPanelStyle::getHorizontalAlign()
TPanelStyle::getScrollBars()
TPanelStyle::getWrap()
TPanelStyle::mergeWith()
TPanelStyle::reset()
TPanelStyle::setBackImageUrl()
TPanelStyle::setDirection()
TPanelStyle::setHorizontalAlign()
TPanelStyle::setScrollBars()
TPanelStyle::setWrap()

Inherited From TStyle

TStyle::__construct()
TStyle::addAttributesToRender()
TStyle::clearStyleField()
TStyle::copyFrom()
TStyle::getBackColor()
TStyle::getBorderColor()
TStyle::getBorderStyle()
TStyle::getBorderWidth()
TStyle::getCssClass()
TStyle::getCustomStyle()
TStyle::getFont()
TStyle::getForeColor()
TStyle::getHeight()
TStyle::getStyleField()
TStyle::getStyleFields()
TStyle::getWidth()
TStyle::hasCssClass()
TStyle::hasFont()
TStyle::hasStyleField()
TStyle::mergeWith()
TStyle::reset()
TStyle::setBackColor()
TStyle::setBorderColor()
TStyle::setBorderStyle()
TStyle::setBorderWidth()
TStyle::setCssClass()
TStyle::setCustomStyle()
TStyle::setForeColor()
TStyle::setHeight()
TStyle::setStyleField()
TStyle::setWidth()
TStyle::__clone()

Inherited From TComponent

TComponent::addParsedObject()
TComponent::attachEventHandler()
TComponent::canGetProperty()
TComponent::canSetProperty()
TComponent::createdOnTemplate()
TComponent::detachEventHandler()
TComponent::evaluateExpression()
TComponent::evaluateStatements()
TComponent::getEventHandlers()
TComponent::getSubProperty()
TComponent::hasEvent()
TComponent::hasEventHandler()
TComponent::hasProperty()
TComponent::raiseEvent()
TComponent::setSubProperty()
TComponent::__get()
TComponent::__set()

Documentation generated on Sun, 14 Jan 2007 21:41:59 -0500 by phpDocumentor 1.3.0RC4