public class StyledElement extends Element
Modifier and Type | Class and Description |
---|---|
static class |
StyledElement.FontStyle |
static class |
StyledElement.FontWeight |
static class |
StyledElement.TextAlign |
static class |
StyledElement.TextDecoration |
static class |
StyledElement.Unit |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
backgroundColor
The background color string.
|
protected java.lang.String |
color
The color string.
|
protected java.lang.String |
fontFamily |
protected Length |
fontSize |
protected StyledElement.FontStyle |
fontStyle |
protected StyledElement.FontWeight |
fontWeight |
protected java.lang.String |
styleName
The style name string.
|
protected StyledElement.TextAlign |
textAlign |
protected StyledElement.TextDecoration |
textDecoration |
Constructor and Description |
---|
StyledElement() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBackgroundColor()
The background color string.
|
java.lang.String |
getColor()
The color string.
|
java.lang.String |
getFontFamily() |
Length |
getFontSize() |
StyledElement.FontStyle |
getFontStyle() |
StyledElement.FontWeight |
getFontWeight() |
java.lang.String |
getStyleName()
The style name string.
|
StyledElement.TextAlign |
getTextAlign() |
StyledElement.TextDecoration |
getTextDecoration() |
void |
setBackgroundColor(java.lang.String backgroundColor)
The background color string.
|
void |
setColor(java.lang.String color)
The color string.
|
void |
setFontFamily(java.lang.String fontFamily) |
void |
setFontSize(Length fontSize) |
void |
setFontStyle(StyledElement.FontStyle fontStyle) |
void |
setFontWeight(StyledElement.FontWeight fontWeight) |
void |
setStyleName(java.lang.String styleName)
The style name string.
|
void |
setTextAlign(StyledElement.TextAlign textAlign) |
void |
setTextDecoration(StyledElement.TextDecoration textDecoration) |
protected java.lang.String styleName
protected java.lang.String color
protected java.lang.String backgroundColor
protected Length fontSize
protected StyledElement.FontWeight fontWeight
protected StyledElement.FontStyle fontStyle
protected StyledElement.TextDecoration textDecoration
protected StyledElement.TextAlign textAlign
protected java.lang.String fontFamily
public java.lang.String getStyleName()
public void setStyleName(java.lang.String styleName)
public java.lang.String getColor()
public void setColor(java.lang.String color)
public java.lang.String getBackgroundColor()
public void setBackgroundColor(java.lang.String backgroundColor)
public Length getFontSize()
public void setFontSize(Length fontSize)
public StyledElement.FontStyle getFontStyle()
public void setFontStyle(StyledElement.FontStyle fontStyle)
public StyledElement.TextAlign getTextAlign()
public void setTextAlign(StyledElement.TextAlign textAlign)
public StyledElement.FontWeight getFontWeight()
public void setFontWeight(StyledElement.FontWeight fontWeight)
public StyledElement.TextDecoration getTextDecoration()
public void setTextDecoration(StyledElement.TextDecoration textDecoration)
public void setFontFamily(java.lang.String fontFamily)
public java.lang.String getFontFamily()