Class StyledTable
java.lang.Object
com.nomagic.magicreport.format.html.StyledTable
Class for keeping shared styles of table, tr, and td.
- Since:
- July 24, 2013
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCellStyle(CellStyle cellStyle) Add cell (TD) style to list.voidClear cell style.Get cell (TD) style list.getCellStyle(int index) Get cell (TD) style by index.Get row (TR) style.Get table style.voidsetCellStyle(List<CellStyle> cellStyles) Set cell (TD) style.voidsetRowStyle(CellStyle rowStyle) Set row (TR) style.voidsetTableStyle(CellStyle tableStyle) Set table style.
-
Field Details
-
TABLE_PROPERTIES
constants for table properites.- See Also:
-
TAG_NAME
Constants for tag name.- See Also:
-
-
Constructor Details
-
StyledTable
public StyledTable()
-
-
Method Details
-
getTableStyle
Get table style.- Returns:
- tableStyle
-
setTableStyle
Set table style.- Parameters:
tableStyle- table style
-
getRowStyle
Get row (TR) style.- Returns:
- rowStyle
-
setRowStyle
Set row (TR) style.- Parameters:
rowStyle- row style
-
getCellStyle
Get cell (TD) style list.- Returns:
- cellStyle list
-
setCellStyle
Set cell (TD) style.- Parameters:
cellStyles- list of cell style
-
addCellStyle
Add cell (TD) style to list.- Parameters:
cellStyle- of cell style
-
getCellStyle
Get cell (TD) style by index.- Parameters:
index- index of cell style in list- Returns:
- cell style at index
-
clearCellStyle
public void clearCellStyle()Clear cell style.
-