java.lang.Object
com.foreach.across.modules.debugweb.support.Table

public class Table extends Object
Author:
Stijn Vanhoof
  • Constructor Details

    • Table

      public Table(String title)
    • Table

      public Table()
  • Method Details

    • addRow

      public void addRow(TableRow row)
    • addRow

      public void addRow(Object... fields)
    • fromMap

      public static Table fromMap(String title, Map data)
      Converts a map into a table where the first column is the key and the second column the value.
      Parameters:
      title - Title for the table.
      data - Map to be converted.
      Returns:
      Table instance.
    • isEmpty

      public boolean isEmpty()
    • size

      public int size()
    • setTitle

      public void setTitle(String title)
    • setSubTitle

      public void setSubTitle(String subTitle)
    • setHeader

      public void setHeader(TableHeader header)
    • setRows

      public void setRows(Collection<TableRow> rows)
    • getTitle

      public String getTitle()
    • getSubTitle

      public String getSubTitle()
    • getHeader

      public TableHeader getHeader()
    • getRows

      public Collection<TableRow> getRows()