Class StyledTable

java.lang.Object
com.nomagic.magicreport.format.html.StyledTable

@OpenApiAll public class StyledTable extends Object
Class for keeping shared styles of table, tr, and td.
Since:
July 24, 2013
  • Field Details

  • Constructor Details

    • StyledTable

      public StyledTable()
  • Method Details

    • getTableStyle

      public CellStyle getTableStyle()
      Get table style.
      Returns:
      tableStyle
    • setTableStyle

      public void setTableStyle(CellStyle tableStyle)
      Set table style.
      Parameters:
      tableStyle - table style
    • getRowStyle

      public CellStyle getRowStyle()
      Get row (TR) style.
      Returns:
      rowStyle
    • setRowStyle

      public void setRowStyle(CellStyle rowStyle)
      Set row (TR) style.
      Parameters:
      rowStyle - row style
    • getCellStyle

      public List<CellStyle> getCellStyle()
      Get cell (TD) style list.
      Returns:
      cellStyle list
    • setCellStyle

      public void setCellStyle(List<CellStyle> cellStyles)
      Set cell (TD) style.
      Parameters:
      cellStyles - list of cell style
    • addCellStyle

      public void addCellStyle(CellStyle cellStyle)
      Add cell (TD) style to list.
      Parameters:
      cellStyle - of cell style
    • getCellStyle

      public CellStyle getCellStyle(int index)
      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.