Class TTableStyle
TTableStyle class.
TTableStyle represents the CSS style specific for HTML table.
| Method Summary |
|
void
|
Adds attributes related to CSS styles to renderer.
|
|
void
|
Copies the fields in a new style to this style.
|
|
string
|
|
|
boolean
|
|
|
integer
|
|
|
integer
|
|
|
TTableGridLines
|
|
|
THorizontalAlign
|
|
|
void
|
Merges the style with a new one.
|
|
void
|
Sets the style attributes to default values.
|
|
void
|
Sets the URL of the background image for the table
|
|
void
|
|
|
void
|
|
|
void
|
|
|
void
|
Sets the grid line style of the table.
|
|
void
|
Sets the horizontal alignment of the contents within the table.
|
| Methods Inherited From TStyle |
|
TStyle::addAttributesToRender(), TStyle::clearStyleField(), TStyle::copyFrom(), TStyle::getBackColor(), TStyle::getBorderColor(), TStyle::getBorderStyle(), TStyle::getBorderWidth(), TStyle::getCssClass(), TStyle::getCustomStyle(), TStyle::getDisplayStyle(), 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::setDisplayStyle(), TStyle::setForeColor(), TStyle::setHeight(), TStyle::setStyleField(), TStyle::setWidth(), TStyle::__clone()
|
| Methods 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()
|
| Method Details |
addAttributesToRender
| public void addAttributesToRender |
(THtmlWriter $writer ) |
Adds attributes related to CSS styles to renderer.
This method overrides the parent implementation.
| Input |
| THtmlWriter | $writer | the writer used for the rendering purpose |
| Output |
| Exception |
|
copyFrom
| public void 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.
| Input |
| TStyle | $style | the new style |
| Output |
| Exception |
|
getBackImageUrl
| public string getBackImageUrl |
() |
| Output |
|
string
| the URL of the background image for the table |
| Exception |
|
getBorderCollapse
| public boolean getBorderCollapse |
() |
| Output |
|
boolean
| whether the table borders should be collapsed. Defaults to false. |
| Exception |
|
getCellPadding
| public integer getCellPadding |
() |
| Output |
|
integer
| cellpadding of the table. Defaults to -1, meaning not set. |
| Exception |
|
getCellSpacing
| public integer getCellSpacing |
() |
| Output |
|
integer
| cellspacing of the table. Defaults to -1, meaning not set. |
| Exception |
|
getGridLines
| Output |
|
TTableGridLines
| the grid line setting of the table. Defaults to TTableGridLines::None. |
| Exception |
|
getHorizontalAlign
| Output |
|
THorizontalAlign
| the horizontal alignment of the contents within the table, defaults to THorizontalAlign::NotSet. |
| Exception |
|
mergeWith
| public void 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.
| Input |
| TStyle | $style | the new style |
| Output |
| Exception |
|
reset
Sets the style attributes to default values.
This method overrides the parent implementation by resetting additional TTableStyle specific attributes.
|
setBackImageUrl
| public void setBackImageUrl |
(string $value ) |
Sets the URL of the background image for the table
| Input |
| string | $value | the URL |
| Output |
| Exception |
|
setBorderCollapse
| public void setBorderCollapse |
(boolean $value ) |
| Input |
| boolean | $value | whether the table borders should be collapsed. |
| Output |
| Exception |
|
setCellPadding
| public void setCellPadding |
(integer $value ) |
| Input |
| integer | $value | cellpadding of the table. A value equal to -1 clears up the setting. |
| Output |
| Exception |
| throws | TInvalidDataValueException if the value is less than -1. |
|
setCellSpacing
| public void setCellSpacing |
(integer $value ) |
| Input |
| integer | $value | cellspacing of the table. A value equal to -1 clears up the setting. |
| Output |
| Exception |
| throws | TInvalidDataValueException if the value is less than -1. |
|
setGridLines
Sets the grid line style of the table.
| Input |
| TTableGridLines | $value | the grid line setting of the table |
| Output |
| Exception |
|
setHorizontalAlign
Sets the horizontal alignment of the contents within the table.
|
|