Method Summary |
void
|
Adds attributes related to CSS styles to renderer.
|
void
|
Clears a single style field value;
|
void
|
Copies the fields in a new style to this style.
|
string
|
|
string
|
|
string
|
|
string
|
|
string
|
|
string
|
|
TDisplayStyle
|
|
TFont
|
|
string
|
|
string
|
|
string
|
|
array
|
|
string
|
|
boolean
|
|
boolean
|
|
boolean
|
|
void
|
Merges the style with a new one.
|
void
|
Resets the style to the original empty state.
|
void
|
|
void
|
|
void
|
Sets the border style of the control.
|
void
|
|
void
|
|
void
|
Sets custom style fields from a string.
|
void
|
|
void
|
|
void
|
|
void
|
Sets a single style field value.
|
void
|
|
void
|
Need to clone the font object.
|
Method Details |
addAttributesToRender
public void addAttributesToRender |
(THtmlWriter $writer ) |
Adds attributes related to CSS styles to renderer.
Input |
THtmlWriter | $writer | the writer used for the rendering purpose |
Output |
Exception |
|
clearStyleField
public void clearStyleField |
(string $name ) |
Clears a single style field value;
Input |
string | $name | style field name |
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 |
|
getBackColor
public string getBackColor |
() |
Output |
string
| the background color of the control |
Exception |
|
getBorderColor
public string getBorderColor |
() |
Output |
string
| the border color of the control |
Exception |
|
getBorderStyle
public string getBorderStyle |
() |
Output |
string
| the border style of the control |
Exception |
|
getBorderWidth
public string getBorderWidth |
() |
Output |
string
| the border width of the control |
Exception |
|
getCssClass
public string getCssClass |
() |
Output |
string
| the CSS class of the control |
Exception |
|
getCustomStyle
public string getCustomStyle |
() |
Output |
string
| the custom style of the control |
Exception |
|
getDisplayStyle
|
getFont
Output |
TFont
| the font of the control |
Exception |
|
getForeColor
public string getForeColor |
() |
Output |
string
| the foreground color of the control |
Exception |
|
getHeight
public string getHeight |
() |
Output |
string
| the height of the control |
Exception |
|
getStyleField
public string getStyleField |
(mixed $name ) |
Input |
mixed | $name | |
Output |
string
| a single style field value set via setStyleField. Defaults to empty string. |
Exception |
|
getStyleFields
public array getStyleFields |
() |
Output |
array
| list of style fields. |
Exception |
|
getWidth
public string getWidth |
() |
Output |
string
| the width of the control |
Exception |
|
hasCssClass
public boolean hasCssClass |
() |
Output |
boolean
| true if CSS is set or empty. |
Exception |
|
hasFont
public boolean hasFont |
() |
Output |
boolean
| true if font is set. |
Exception |
|
hasStyleField
public boolean hasStyleField |
(mixed $name ) |
Input |
mixed | $name | |
Output |
boolean
| whether a style field has been defined by setStyleField |
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
Resets the style to the original empty state.
|
setBackColor
public void setBackColor |
(string $value ) |
Input |
string | $value | the background color of the control |
Output |
Exception |
|
setBorderColor
public void setBorderColor |
(string $value ) |
Input |
string | $value | the border color of the control |
Output |
Exception |
|
setBorderStyle
public void setBorderStyle |
(string $value ) |
Sets the border style of the control.
Input |
string | $value | the border style of the control |
Output |
Exception |
|
setBorderWidth
public void setBorderWidth |
(string $value ) |
Input |
string | $value | the border width of the control |
Output |
Exception |
|
setCssClass
public void setCssClass |
(string $value ) |
Input |
string | $value | the name of the CSS class of the control |
Output |
Exception |
|
setCustomStyle
public void setCustomStyle |
(string $value ) |
Sets custom style fields from a string.
Custom style fields will be overwritten by style fields explicitly defined.
Input |
string | $value | the custom style of the control |
Output |
Exception |
|
setDisplayStyle
Input |
TDisplayStyle | $value | control display style, default is TDisplayStyle::Fixed |
Output |
Exception |
|
setForeColor
public void setForeColor |
(string $value ) |
Input |
string | $value | the foreground color of the control |
Output |
Exception |
|
setHeight
public void setHeight |
(string $value ) |
Input |
string | $value | the height of the control |
Output |
Exception |
|
setStyleField
public void setStyleField |
(string $name , string $value ) |
Sets a single style field value.
Style fields set by this method will overwrite those set by setCustomStyle.
Input |
string | $name | style field name |
string | $value | style field value |
Output |
Exception |
|
setWidth
public void setWidth |
(string $value ) |
Input |
string | $value | the width of the control |
Output |
Exception |
|
__clone
Need to clone the font object.
|