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 TStyle

TStyle class

TStyle encapsulates the CSS style applied to a control.

TComponent
Extended by TStyle

Direct known subclasses

TPanelStyle, TTableItemStyle, TTableStyle, TWizardNavigationButtonStyle

Indirect known subclasses

TDataGridPagerStyle
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
# __construct( TStyle $style = null )

Constructor.

Constructor.

Parameters

$style
TStyle
style to copy from

Overrides

TComponent::__construct()
public
# __clone( )

Need to clone the font object.

Need to clone the font object.

public string
# getBackColor( )

Returns

string
the background color of the control
public
# setBackColor( string $value )

Parameters

$value
string
the background color of the control
public string
# getBorderColor( )

Returns

string
the border color of the control
public
# setBorderColor( string $value )

Parameters

$value
string
the border color of the control
public string
# getBorderStyle( )

Returns

string
the border style of the control
public
# setBorderStyle( string $value )

Sets the border style of the control.

Sets the border style of the control.

Parameters

$value
string
the border style of the control
public string
# getBorderWidth( )

Returns

string
the border width of the control
public
# setBorderWidth( string $value )

Parameters

$value
string
the border width of the control
public string
# getCssClass( )

Returns

string
the CSS class of the control
public boolean
# hasCssClass( )

Returns

boolean
true if CSS is set or empty.
public
# setCssClass( string $value )

Parameters

$value
string
the name of the CSS class of the control
public TFont
# getFont( )

Returns

TFont
the font of the control
public boolean
# hasFont( )

Returns

boolean
true if font is set.
public
# setDisplayStyle( TDisplayStyle $value )

Parameters

$value
TDisplayStyle
control display style, default is TDisplayStyle::Fixed
public TDisplayStyle
# getDisplayStyle( )

Returns

TDisplayStyle
display style
public string
# getForeColor( )

Returns

string
the foreground color of the control
public
# setForeColor( string $value )

Parameters

$value
string
the foreground color of the control
public string
# getHeight( )

Returns

string
the height of the control
public
# setHeight( string $value )

Parameters

$value
string
the height of the control
public string
# getCustomStyle( )

Returns

string
the custom style of the control
public
# setCustomStyle( string $value )

Sets custom style fields from a string. Custom style fields will be overwritten by style fields explicitly defined.

Sets custom style fields from a string. Custom style fields will be overwritten by style fields explicitly defined.

Parameters

$value
string
the custom style of the control
public string
# getStyleField( mixed $name )

Returns

string
a single style field value set via TStyle::setStyleField(). Defaults to empty string.
public
# setStyleField( string $name, string $value )

Sets a single style field value. Style fields set by this method will overwrite those set by TStyle::setCustomStyle().

Sets a single style field value. Style fields set by this method will overwrite those set by TStyle::setCustomStyle().

Parameters

$name
string
style field name
$value
string
style field value
public
# clearStyleField( string $name )

Clears a single style field value;

Clears a single style field value;

Parameters

$name
string
style field name
public boolean
# hasStyleField( mixed $name )

Returns

boolean
whether a style field has been defined by TStyle::setStyleField()
public string
# getWidth( )

Returns

string
the width of the control
public
# setWidth( string $value )

Parameters

$value
string
the width of the control
public
# reset( )

Resets the style to the original empty state.

Resets the style to the original empty state.

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
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
public
# addAttributesToRender( THtmlWriter $writer )

Adds attributes related to CSS styles to renderer.

Adds attributes related to CSS styles to renderer.

Parameters

$writer
THtmlWriter
the writer used for the rendering purpose
public array
# getStyleFields( )

Returns

array
list of style fields.
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