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

TFont encapsulates the CSS style fields related with font settings.
부터: 3.0
저자: Qiang Xue ([email protected])
상속: extends Prado\TComponent
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
addAttributesToRender ( $writer ) Adds attributes related to CSS styles to renderer.
copyFrom ( $font ) Copies the fields in a new font to this font.
getBold ( ) : boolean
getIsEmpty ( ) : boolean
getItalic ( ) : boolean
getName ( ) : string
getOverline ( ) : boolean
getSize ( ) : string
getStrikeout ( ) : boolean
getUnderline ( ) : boolean
mergeWith ( $font ) Merges the font with a new one.
reset ( ) Clears up the font.
setBold ( $value )
setItalic ( $value )
setName ( $value )
setOverline ( $value )
setSize ( $value )
setStrikeout ( $value )
setUnderline ( $value )
toString ( ) : string

보호된 메소드들

메소드 설명
_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.

메소드 상세

_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 )

copyFrom() 공개 메소드

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

getBold() 공개 메소드

public getBold ( ) : boolean
리턴 boolean whether the font is in bold face. Defaults to false.

getIsEmpty() 공개 메소드

public getIsEmpty ( ) : boolean
리턴 boolean whether the font is empty

getItalic() 공개 메소드

public getItalic ( ) : boolean
리턴 boolean whether the font is in italic face. Defaults to false.

getName() 공개 메소드

public getName ( ) : string
리턴 string the font name (family)

getOverline() 공개 메소드

public getOverline ( ) : boolean
리턴 boolean whether the font is overlined. Defaults to false.

getSize() 공개 메소드

public getSize ( ) : string
리턴 string the font size

getStrikeout() 공개 메소드

public getStrikeout ( ) : boolean
리턴 boolean whether the font is strikeout. Defaults to false.

getUnderline() 공개 메소드

public getUnderline ( ) : boolean
리턴 boolean whether the font is underlined. Defaults to false.

mergeWith() 공개 메소드

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

reset() 공개 메소드

Clears up the font.
public reset ( )

setBold() 공개 메소드

public setBold ( $value )

setItalic() 공개 메소드

public setItalic ( $value )

setName() 공개 메소드

public setName ( $value )

setOverline() 공개 메소드

public setOverline ( $value )

setSize() 공개 메소드

public setSize ( $value )

setStrikeout() 공개 메소드

public setStrikeout ( $value )

setUnderline() 공개 메소드

public setUnderline ( $value )

toString() 공개 메소드

public toString ( ) : string
리턴 string the font in a css style string representation.