P
- parent node classD
- defaults provider classpublic abstract class FontItem<P extends AbstractModel<?,?>,D extends IsDefaultFontItem> extends AbstractModel<P,D> implements IsDefaultFontItem
Modifier and Type | Method and Description |
---|---|
IsColor |
getFontColor()
Returns the font color
|
String |
getFontColorAsString()
Returns the font color
|
String |
getFontFamily()
Returns the font family, follows CSS font-family options.
|
int |
getFontSize()
Returns the font size.
|
FontStyle |
getFontStyle()
Returns the font style, follows CSS font-style options (i.e.
|
void |
setFontColor(IsColor fontColor)
Sets the font color
|
void |
setFontColor(String fontColor)
Sets the font color
|
void |
setFontFamily(String fontFamily)
Sets the font family, follows CSS font-family options.
|
void |
setFontSize(int fontSize)
Sets the font size.
|
void |
setFontStyle(FontStyle fontStyle)
Sets the font style, follows CSS font-style options (i.e.
|
checkAndAddToParent, getChildKey, getDefaultValues, getParent, setCallbackToModel, setEventToModel
getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public void setFontSize(int fontSize)
fontSize
- the font size.public int getFontSize()
getFontSize
in interface IsDefaultFontItem
public void setFontStyle(FontStyle fontStyle)
fontStyle
- Font style, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).public FontStyle getFontStyle()
getFontStyle
in interface IsDefaultFontItem
public void setFontColor(IsColor fontColor)
fontColor
- Font colorpublic void setFontColor(String fontColor)
fontColor
- Font colorpublic String getFontColorAsString()
getFontColorAsString
in interface IsDefaultFontItem
public IsColor getFontColor()
public void setFontFamily(String fontFamily)
fontFamily
- Font family, follows CSS font-family options.public String getFontFamily()
getFontFamily
in interface IsDefaultFontItem