|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Style
A Style represents the visual presentation ('styling') attributes of
a value in a Row. Styling can be used to highlight special values and
format the cells of eg. a spreadsheet.
Most datastores don't support styling, but some do. Those who do not support
it will just omit it.
Creation of Style objects is handled by the StyleBuilder
class.
| Nested Class Summary | |
|---|---|
static interface |
Style.Color
Represents a color used for value highlighting. |
static class |
Style.SizeUnit
Represents a unit of sizing elements (eg. fonts) in a Style. |
static class |
Style.TextAlignment
Represents the text alignment of a value. |
| Field Summary | |
|---|---|
static Style |
NO_STYLE
A style object used for values without styling, "unstyled" values or "neutrally styled" values. |
| Method Summary | |
|---|---|
Style.TextAlignment |
getAlignment()
Gets the text alignment, or null if text alignment is unspecified. |
Style.Color |
getBackgroundColor()
Gets the background color, or null if the color is unspecified. |
Integer |
getFontSize()
Gets the font size, or null if font size is unspecified. |
Style.SizeUnit |
getFontSizeUnit()
Gets the unit of the font size. |
Style.Color |
getForegroundColor()
Gets the foreground (text) color, or null if the color is unspecified. |
boolean |
isBold()
Determines whether or not the value is written in bold text. |
boolean |
isItalic()
Determines whether or not the value is written in italic text. |
boolean |
isUnderline()
Determines whether or not the value is written with an underline |
String |
toCSS()
Creates a Cascading Style Sheets (CSS) representation of this style. |
| Field Detail |
|---|
static final Style NO_STYLE
| Method Detail |
|---|
boolean isBold()
boolean isItalic()
boolean isUnderline()
Integer getFontSize()
Style.SizeUnitStyle.SizeUnit getFontSizeUnit()
Style.TextAlignment getAlignment()
Style.Color getForegroundColor()
Style.Color getBackgroundColor()
String toCSS()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||