PHP 클래스 Prado\Web\UI\WebControls\TStyle

TStyle encapsulates the CSS style applied to a control.
부터: 3.0
저자: Qiang Xue ([email protected])
상속: extends Prado\TComponent
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
__clone ( ) Need to clone the font object.
__construct ( $style = null ) Constructor.
addAttributesToRender ( $writer ) Adds attributes related to CSS styles to renderer.
clearStyleField ( $name ) Clears a single style field value;
copyFrom ( $style ) Copies the fields in a new style to this style.
getBackColor ( ) : string
getBorderColor ( ) : string
getBorderStyle ( ) : string
getBorderWidth ( ) : string
getCssClass ( ) : string
getCustomStyle ( ) : string
getDisplayStyle ( ) : TDisplayStyle
getFont ( ) : TFont
getForeColor ( ) : string
getHeight ( ) : string
getStyleField ( $name ) : string
getStyleFields ( ) : array
getWidth ( ) : string
hasCssClass ( ) : boolean
hasFont ( ) : boolean
hasStyleField ( $name ) : boolean
mergeWith ( $style ) Merges the style with a new one.
reset ( ) Resets the style to the original empty state.
setBackColor ( $value )
setBorderColor ( $value )
setBorderStyle ( $value ) Sets the border style of the control.
setBorderWidth ( $value )
setCssClass ( $value )
setCustomStyle ( $value ) Sets custom style fields from a string.
setDisplayStyle ( $value )
setForeColor ( $value )
setHeight ( $value )
setStyleField ( $name, $value ) Sets a single style field value.
setWidth ( $value )

보호된 메소드들

메소드 설명
_getZappableSleepProps ( &$exprops ) Returns an array with the names of all variables of this object that should NOT be serialized because their value is the default one or useless to be cached for the next page loads.

메소드 상세

__clone() 공개 메소드

Need to clone the font object.
public __clone ( )

__construct() 공개 메소드

Constructor.
public __construct ( $style = null )

_getZappableSleepProps() 보호된 메소드

Reimplement in derived classes to add new variables, but remember to also to call the parent implementation first.
protected _getZappableSleepProps ( &$exprops )

addAttributesToRender() 공개 메소드

Adds attributes related to CSS styles to renderer.
public addAttributesToRender ( $writer )

clearStyleField() 공개 메소드

Clears a single style field value;
public clearStyleField ( $name )

copyFrom() 공개 메소드

If a style field is set in the new style, the corresponding field in this style will be overwritten.
public copyFrom ( $style )

getBackColor() 공개 메소드

public getBackColor ( ) : string
리턴 string the background color of the control

getBorderColor() 공개 메소드

public getBorderColor ( ) : string
리턴 string the border color of the control

getBorderStyle() 공개 메소드

public getBorderStyle ( ) : string
리턴 string the border style of the control

getBorderWidth() 공개 메소드

public getBorderWidth ( ) : string
리턴 string the border width of the control

getCssClass() 공개 메소드

public getCssClass ( ) : string
리턴 string the CSS class of the control

getCustomStyle() 공개 메소드

public getCustomStyle ( ) : string
리턴 string the custom style of the control

getDisplayStyle() 공개 메소드

public getDisplayStyle ( ) : TDisplayStyle
리턴 TDisplayStyle display style

getFont() 공개 메소드

public getFont ( ) : TFont
리턴 TFont the font of the control

getForeColor() 공개 메소드

public getForeColor ( ) : string
리턴 string the foreground color of the control

getHeight() 공개 메소드

public getHeight ( ) : string
리턴 string the height of the control

getStyleField() 공개 메소드

public getStyleField ( $name ) : string
리턴 string a single style field value set via {@link setStyleField}. Defaults to empty string.

getStyleFields() 공개 메소드

public getStyleFields ( ) : array
리턴 array list of style fields.

getWidth() 공개 메소드

public getWidth ( ) : string
리턴 string the width of the control

hasCssClass() 공개 메소드

public hasCssClass ( ) : boolean
리턴 boolean true if CSS is set or empty.

hasFont() 공개 메소드

public hasFont ( ) : boolean
리턴 boolean true if font is set.

hasStyleField() 공개 메소드

public hasStyleField ( $name ) : boolean
리턴 boolean whether a style field has been defined by {@link setStyleField}

mergeWith() 공개 메소드

If a style field is not set in this style, it will be overwritten by the new one.
public mergeWith ( $style )

reset() 공개 메소드

Resets the style to the original empty state.
public reset ( )

setBackColor() 공개 메소드

public setBackColor ( $value )

setBorderColor() 공개 메소드

public setBorderColor ( $value )

setBorderStyle() 공개 메소드

Sets the border style of the control.
public setBorderStyle ( $value )

setBorderWidth() 공개 메소드

public setBorderWidth ( $value )

setCssClass() 공개 메소드

public setCssClass ( $value )

setCustomStyle() 공개 메소드

Custom style fields will be overwritten by style fields explicitly defined.
public setCustomStyle ( $value )

setDisplayStyle() 공개 메소드

public setDisplayStyle ( $value )

setForeColor() 공개 메소드

public setForeColor ( $value )

setHeight() 공개 메소드

public setHeight ( $value )

setStyleField() 공개 메소드

Style fields set by this method will overwrite those set by {@link setCustomStyle}.
public setStyleField ( $name, $value )

setWidth() 공개 메소드

public setWidth ( $value )