Class StyleTable.Builder
- java.lang.Object
-
- org.deeplearning4j.ui.api.Style.Builder<StyleTable.Builder>
-
- org.deeplearning4j.ui.components.table.style.StyleTable.Builder
-
- Enclosing class:
- StyleTable
public static class StyleTable.Builder extends Style.Builder<StyleTable.Builder>
-
-
Field Summary
-
Fields inherited from class org.deeplearning4j.ui.api.Style.Builder
height, heightUnit, marginBottom, marginLeft, marginRight, marginTop, marginUnit, width, widthUnit
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StyleTable.BuilderbackgroundColor(Color color)StyleTable.BuilderbackgroundColor(String color)StyleTable.BuilderborderWidth(int borderWidthPx)StyleTablebuild()StyleTable.BuildercolumnWidths(LengthUnit unit, double... widths)Specify the widths for the columnsStyleTable.BuilderheaderColor(Color color)StyleTable.BuilderheaderColor(String color)StyleTable.BuilderwhitespaceMode(String whitespaceMode)Set the whitespace mode (CSS style tag).-
Methods inherited from class org.deeplearning4j.ui.api.Style.Builder
height, margin, margin, width
-
-
-
-
Method Detail
-
columnWidths
public StyleTable.Builder columnWidths(LengthUnit unit, double... widths)
Specify the widths for the columns- Parameters:
unit- Unit that the widths are specified inwidths- Width values for the columns
-
borderWidth
public StyleTable.Builder borderWidth(int borderWidthPx)
- Parameters:
borderWidthPx- Width of the border, in px
-
headerColor
public StyleTable.Builder headerColor(Color color)
- Parameters:
color- Background color for the header row
-
headerColor
public StyleTable.Builder headerColor(String color)
- Parameters:
color- Background color for the header row
-
backgroundColor
public StyleTable.Builder backgroundColor(Color color)
- Overrides:
backgroundColorin classStyle.Builder<StyleTable.Builder>- Parameters:
color- Background color for the table cells (ex. header row)
-
backgroundColor
public StyleTable.Builder backgroundColor(String color)
- Overrides:
backgroundColorin classStyle.Builder<StyleTable.Builder>- Parameters:
color- Background color for the table cells (ex. header row)
-
whitespaceMode
public StyleTable.Builder whitespaceMode(String whitespaceMode)
Set the whitespace mode (CSS style tag). For example, "pre" to maintain current formatting with no wrapping, "pre-wrap" to wrap (but otherwise take into account new line characters in text, etc)- Parameters:
whitespaceMode- CSS whitespace mode
-
build
public StyleTable build()
-
-