Class CellOptions
- java.lang.Object
-
- com.identityworksllc.iiq.common.table.CellOptions
-
public class CellOptions extends Object
A class implementing a variety of static cell options.These can be passed to a Cell constructed using
Cell.of(Object, CellOption...)
or to the builder inTable.cell(Object, CellOption...)
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CellOption
addCssClasses(String... classes)
Modifies the given Cell to add the classes listed to the existing liststatic CellOption
colspan(int span)
Modifies the given Cell to have a column span of the given valuestatic CellOption
header()
Modifies the given cell to set it as a header (th vs td)static CellOption
html()
Modifies the given cell to set it as an HTML valuestatic CellOption
rowspan(int span)
Modifies the given cell to set its rowspanstatic CellOption
setCssClasses(String... classes)
Modifies the given Cell to replace the class list with the ones listedstatic CellOption
style(String style)
Modifies the given cell to set its CSS style attribute
-
-
-
Method Detail
-
addCssClasses
public static CellOption addCssClasses(String... classes)
Modifies the given Cell to add the classes listed to the existing list
-
colspan
public static CellOption colspan(int span)
Modifies the given Cell to have a column span of the given value- Parameters:
span
- The column span
-
header
public static CellOption header()
Modifies the given cell to set it as a header (th vs td)
-
html
public static CellOption html()
Modifies the given cell to set it as an HTML value
-
rowspan
public static CellOption rowspan(int span)
Modifies the given cell to set its rowspan- Parameters:
span
- The row span value
-
setCssClasses
public static CellOption setCssClasses(String... classes)
Modifies the given Cell to replace the class list with the ones listed
-
style
public static CellOption style(String style)
Modifies the given cell to set its CSS style attribute- Parameters:
style
- The CSS style string
-
-