Properties

$styleIds

$styleIds : array<mixed,string>

Type

array<mixed,string> — Style Ids

$styleClasses

$styleClasses : array<mixed,string>

Type

array<mixed,string> — Style classes

$backgroundColor

$backgroundColor : string

Type

string — Background color

$focusBackgroundColor

$focusBackgroundColor : string

Type

string — Focus background color

$color

$color : string

Type

string — Color

$style

$style : string

Type

string — Style

$subStyle

$subStyle : string

Type

string — SubStyle

$textSize

$textSize : integer

Type

integer — Text size

$textFont

$textFont : string

Type

string — Text font

$textColor

$textColor : string

Type

string — Text color

$areaColor

$areaColor : string

Type

string — Area color

$focusAreaColor

$focusAreaColor : string

Type

string — Focus area color

Methods

create()

create() : static

Create a new Style

Returns

static

getStyleIds()

getStyleIds() : array<mixed,string>

Get style Ids

Returns

array<mixed,string>

addStyleId()

addStyleId(string  $styleId) : static

Add style Id

Parameters

string $styleId

Style Id

Returns

static

addStyleIds()

addStyleIds(array<mixed,string>  $styleIds) : static

Add style Ids

Parameters

array<mixed,string> $styleIds

Style Ids

Returns

static

setStyleIds()

setStyleIds(array<mixed,string>  $styleIds) : static

Set style Ids

Parameters

array<mixed,string> $styleIds

Style Ids

Returns

static

removeAllStyleIds()

removeAllStyleIds() : static

Remove all style Ids

Returns

static

applyToControl()

applyToControl(\FML\Controls\Control  $control) : static

Apply style to the given control using its Id

Parameters

\FML\Controls\Control $control

Control that should be styled

Returns

static

getStyleClasses()

getStyleClasses() : array<mixed,string>

Get style classes

Returns

array<mixed,string>

addStyleClass()

addStyleClass(string  $styleClass) : static

Add style class

Parameters

string $styleClass

Style class

Returns

static

addStyleClasses()

addStyleClasses(array<mixed,string>  $styleClasses) : static

Add style classes

Parameters

array<mixed,string> $styleClasses

Style classes

Returns

static

setStyleClasses()

setStyleClasses(array  $styleClasses) : static

Set style classes

Parameters

array $styleClasses

Returns

static

removeAllStyleClasses()

removeAllStyleClasses() : static

Remove all style classes

Returns

static

applyToControlViaClasses()

applyToControlViaClasses(\FML\Controls\Control  $control) : static

Apply style to the given control using its classes

Parameters

\FML\Controls\Control $control

Control that should be styled

Returns

static

getBackgroundColor()

getBackgroundColor() : string

Get the background color

Returns

string

setBackgroundColor()

setBackgroundColor(string  $backgroundColor) : static

Set the background color

Parameters

string $backgroundColor

Background color

Returns

static

setBgColor()

setBgColor(  $bgdColor) : static

Set the background color

Parameters

$bgdColor

Returns

static

getFocusBackgroundColor()

getFocusBackgroundColor() : string

Get the focus background color

Returns

string

setFocusBackgroundColor()

setFocusBackgroundColor(string  $focusBackgroundColor) : static

Set the focus background color

Parameters

string $focusBackgroundColor

Focus background color

Returns

static

getColor()

getColor() : string

Get the color

Returns

string

setColor()

setColor(string  $color) : static

Set the color

Parameters

string $color

Color

Returns

static

getStyle()

getStyle() : string

Get the style

Returns

string

setStyle()

setStyle(string  $style) : static

Set the style

Parameters

string $style

Style name

Returns

static

getSubStyle()

getSubStyle() : string

Get the sub style

Returns

string

setSubStyle()

setSubStyle(string  $subStyle) : static

Set the sub style

Parameters

string $subStyle

SubStyle name

Returns

static

setStyles()

setStyles(string  $style, string  $subStyle) : static

Set the style and the sub style

Parameters

string $style

Style name

string $subStyle

SubStyle name

Returns

static

getTextSize()

getTextSize() : integer

Get the text size

Returns

integer

setTextSize()

setTextSize(integer  $textSize) : static

Set the text size

Parameters

integer $textSize

Text size

Returns

static

getTextFont()

getTextFont() : string

Get the text font

Returns

string

setTextFont()

setTextFont(string  $textFont) : static

Set the text font

Parameters

string $textFont

Returns

static

getTextColor()

getTextColor() : string

Get the text color

Returns

string

setTextColor()

setTextColor(string  $textColor) : static

Set the text color

Parameters

string $textColor

Text color

Returns

static

getAreaColor()

getAreaColor() : string

Get the area color

Returns

string

setAreaColor()

setAreaColor(string  $areaColor) : static

Set the area color

Parameters

string $areaColor

Area color

Returns

static

getAreaFocusColor()

getAreaFocusColor() : string

Get the area focus color

Returns

string

setAreaFocusColor()

setAreaFocusColor(string  $areaFocusColor) : static

Set the area focus color

Parameters

string $areaFocusColor

Area focus color

Returns

static

render()

render(\DOMDocument  $domDocument) : \DOMElement

Render the XML element

Parameters

\DOMDocument $domDocument

DOMDocument for which the XML element should be rendered

Returns

\DOMElement