java.lang.Object
com.djrapitops.plan.extension.table.Table

public final class Table extends Object
Object for giving Plan table data.

Usage: Table.builder().columnOne("columnName", new Icon(...)).addRow("Your", "Row", "Data").build()

Tables about players can have up to 4 columns. Tables about server can have up to 5 columns.

Icon colors are ignored.

If a row has more values than the column limit, they are ignored. If a row has less values than table columns, a '-' is displayed to distinguish a missing value.

If a table has no columns or rows, it is ignored.

See Also:
  • Method Details Link icon

    • builder Link icon

      public static Table.Factory builder()
      Create a new Table Factory.
      Returns:
      a new Table Factory.
    • getColumns Link icon

      public String[] getColumns()
    • getMaxColumnSize Link icon

      public int getMaxColumnSize()
    • getIcons Link icon

      public Icon[] getIcons()
    • getRows Link icon

      public List<Object[]> getRows()
    • getTableColumnFormats Link icon

      public TableColumnFormat[] getTableColumnFormats()
    • equals Link icon

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object