public class Span extends StyledElement
StyledElement.FontStyle, StyledElement.FontWeight, StyledElement.TextAlign, StyledElement.TextDecoration, StyledElement.UnitbackgroundColor, color, fontFamily, fontSize, fontStyle, fontWeight, styleName, textAlign, textDecoration| Constructor and Description |
|---|
Span()
Default constructor.
|
Span(java.lang.String text)
Initializes a Span with the given text.
|
Span(StyledElement element)
Initializes a Span given the styling attributes provided in element.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getText()
The text for this Span.
|
void |
setText(java.lang.String text)
The text for this Span.
|
getBackgroundColor, getColor, getFontFamily, getFontSize, getFontStyle, getFontWeight, getStyleName, getTextAlign, getTextDecoration, setBackgroundColor, setColor, setFontFamily, setFontSize, setFontStyle, setFontWeight, setStyleName, setTextAlign, setTextDecorationpublic Span()
public Span(StyledElement element)
element - a StyledElement with attributes to apply to Spanpublic Span(java.lang.String text)
text - text body for Span