PRADO Component Framework for PHP 5
  • Home
  • About
  • Testimonials
  • Demos
  • Download
  • Documentation
  • Forum
  • Development
  • Tutorials
  • Class Docs
  • API Manual
  • Wiki

Packages

  • None
  • System
    • Caching
    • Collections
    • Data
      • ActiveRecord
        • Relations
        • Scaffold
          • InputBuilder
      • Commom
        • Sqlite
      • Common
        • Mssql
        • Mysql
        • Oracle
        • Pgsql
        • Sqlite
      • DataGateway
      • SqlMap
        • Configuration
        • Statements
    • Exceptions
    • I18N
    • IO
    • Security
    • Util
    • Web
      • Javascripts
      • Services
      • UI
        • ActiveControls
        • WebControls
    • Xml
  • Wsat
    • pages
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class TTableStyle

TTableStyle class. TTableStyle represents the CSS style specific for HTML table.

TComponent
Extended by TStyle
Extended by TTableStyle
Package: System\Web\UI\WebControls
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 3.0
Located at Web/UI/WebControls/TStyle.php
Methods summary
public
# reset( )

Sets the style attributes to default values. This method overrides the parent implementation by resetting additional TTableStyle specific attributes.

Sets the style attributes to default values. This method overrides the parent implementation by resetting additional TTableStyle specific attributes.

Overrides

TStyle::reset()
public
# copyFrom( TStyle $style )

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.

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.

Parameters

$style
TStyle
the new style

Overrides

TStyle::copyFrom()
public
# mergeWith( TStyle $style )

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.

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.

Parameters

$style
TStyle
the new style

Overrides

TStyle::mergeWith()
public
# addAttributesToRender( THtmlWriter $writer )

Adds attributes related to CSS styles to renderer. This method overrides the parent implementation.

Adds attributes related to CSS styles to renderer. This method overrides the parent implementation.

Parameters

$writer
THtmlWriter
the writer used for the rendering purpose

Overrides

TStyle::addAttributesToRender()
public string
# getBackImageUrl( )

Returns

string
the URL of the background image for the table
public
# setBackImageUrl( string $value )

Sets the URL of the background image for the table

Sets the URL of the background image for the table

Parameters

$value
string
the URL
public THorizontalAlign
# getHorizontalAlign( )

Returns

THorizontalAlign
the horizontal alignment of the contents within the table, defaults to THorizontalAlign::NotSet.
public
# setHorizontalAlign( THorizontalAlign $value )

Sets the horizontal alignment of the contents within the table.

Sets the horizontal alignment of the contents within the table.

Parameters

$value
THorizontalAlign
the horizontal alignment
public integer
# getCellPadding( )

Returns

integer
cellpadding of the table. Defaults to -1, meaning not set.
public
# setCellPadding( integer $value )

Parameters

$value
integer
cellpadding of the table. A value equal to -1 clears up the setting.

Throws

TInvalidDataValueException
if the value is less than -1.
public integer
# getCellSpacing( )

Returns

integer
cellspacing of the table. Defaults to -1, meaning not set.
public
# setCellSpacing( integer $value )

Parameters

$value
integer
cellspacing of the table. A value equal to -1 clears up the setting.

Throws

TInvalidDataValueException
if the value is less than -1.
public TTableGridLines
# getGridLines( )

Returns

TTableGridLines
the grid line setting of the table. Defaults to TTableGridLines::None.
public
# setGridLines( TTableGridLines $value )

Sets the grid line style of the table.

Sets the grid line style of the table.

Parameters

$value
TTableGridLines
the grid line setting of the table
public boolean
# getBorderCollapse( )

Returns

boolean
whether the table borders should be collapsed. Defaults to false.
public
# setBorderCollapse( boolean $value )

Parameters

$value
boolean
whether the table borders should be collapsed.
Methods inherited from TStyle
__clone(), __construct(), clearStyleField(), getBackColor(), getBorderColor(), getBorderStyle(), getBorderWidth(), getCssClass(), getCustomStyle(), getDisplayStyle(), getFont(), getForeColor(), getHeight(), getStyleField(), getStyleFields(), getWidth(), hasCssClass(), hasFont(), hasStyleField(), setBackColor(), setBorderColor(), setBorderStyle(), setBorderWidth(), setCssClass(), setCustomStyle(), setDisplayStyle(), setForeColor(), setHeight(), setStyleField(), setWidth()
Methods inherited from TComponent
__call(), __destruct(), __get(), __isset(), __set(), __sleep(), __unset(), __wakeup(), addParsedObject(), asa(), attachBehavior(), attachBehaviors(), attachClassBehavior(), attachEventHandler(), canGetProperty(), canSetProperty(), clearBehaviors(), createdOnTemplate(), detachBehavior(), detachBehaviors(), detachClassBehavior(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), evaluateStatements(), fxAttachClassBehavior(), fxDetachClassBehavior(), getAutoGlobalListen(), getBehaviorsEnabled(), getClassHierarchy(), getEventHandlers(), getListeningToGlobalEvents(), getSubProperty(), hasEvent(), hasEventHandler(), hasProperty(), isa(), listen(), raiseEvent(), setSubProperty(), unlisten()
Constants inherited from TComponent
GLOBAL_RAISE_EVENT_LISTENER
Terms of Service | Contact Us
PRADO v3.2.4 API Manual API documentation generated by ApiGen 2.8.0
Copyright © 2006-2014 by the PRADO Group.
Powered by PRADO