public static class StyleTable.Builder extends Style.Builder<StyleTable.Builder>
height, heightUnit, marginBottom, marginLeft, marginRight, marginTop, marginUnit, width, widthUnit
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
StyleTable.Builder |
backgroundColor(java.awt.Color color) |
StyleTable.Builder |
backgroundColor(java.lang.String color) |
StyleTable.Builder |
borderWidth(int borderWidthPx) |
StyleTable |
build() |
StyleTable.Builder |
columnWidths(LengthUnit unit,
double... widths)
Specify the widths for the columns
|
StyleTable.Builder |
headerColor(java.awt.Color color) |
StyleTable.Builder |
headerColor(java.lang.String color) |
StyleTable.Builder |
whitespaceMode(java.lang.String whitespaceMode)
Set the whitespace mode (CSS style tag).
|
height, margin, margin, width
public StyleTable.Builder columnWidths(LengthUnit unit, double... widths)
unit
- Unit that the widths are specified inwidths
- Width values for the columnspublic StyleTable.Builder borderWidth(int borderWidthPx)
borderWidthPx
- Width of the border, in pxpublic StyleTable.Builder headerColor(java.awt.Color color)
color
- Background color for the header rowpublic StyleTable.Builder headerColor(java.lang.String color)
color
- Background color for the header rowpublic StyleTable.Builder backgroundColor(java.awt.Color color)
backgroundColor
in class Style.Builder<StyleTable.Builder>
color
- Background color for the table cells (ex. header row)public StyleTable.Builder backgroundColor(java.lang.String color)
backgroundColor
in class Style.Builder<StyleTable.Builder>
color
- Background color for the table cells (ex. header row)public StyleTable.Builder whitespaceMode(java.lang.String whitespaceMode)
whitespaceMode
- CSS whitespace modepublic StyleTable build()