PHP Class Prado\Web\UI\WebControls\TFont

TFont encapsulates the CSS style fields related with font settings.
Since: 3.0
Author: Qiang Xue ([email protected])
Inheritance: extends Prado\TComponent
Afficher le fichier Open project: pradosoft/prado

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
_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.

Method Details

_getZappableSleepProps() protected méthode

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

addAttributesToRender() public méthode

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

copyFrom() public méthode

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

getBold() public méthode

public getBold ( ) : boolean
Résultat boolean whether the font is in bold face. Defaults to false.

getIsEmpty() public méthode

public getIsEmpty ( ) : boolean
Résultat boolean whether the font is empty

getItalic() public méthode

public getItalic ( ) : boolean
Résultat boolean whether the font is in italic face. Defaults to false.

getName() public méthode

public getName ( ) : string
Résultat string the font name (family)

getOverline() public méthode

public getOverline ( ) : boolean
Résultat boolean whether the font is overlined. Defaults to false.

getSize() public méthode

public getSize ( ) : string
Résultat string the font size

getStrikeout() public méthode

public getStrikeout ( ) : boolean
Résultat boolean whether the font is strikeout. Defaults to false.

getUnderline() public méthode

public getUnderline ( ) : boolean
Résultat boolean whether the font is underlined. Defaults to false.

mergeWith() public méthode

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

reset() public méthode

Clears up the font.
public reset ( )

setBold() public méthode

public setBold ( $value )

setItalic() public méthode

public setItalic ( $value )

setName() public méthode

public setName ( $value )

setOverline() public méthode

public setOverline ( $value )

setSize() public méthode

public setSize ( $value )

setStrikeout() public méthode

public setStrikeout ( $value )

setUnderline() public méthode

public setUnderline ( $value )

toString() public méthode

public toString ( ) : string
Résultat string the font in a css style string representation.