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:
for associated annotation.
  • Method Details

    • builder

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

      public String[] getColumns()
    • getMaxColumnSize

      public int getMaxColumnSize()
    • getIcons

      public Icon[] getIcons()
    • getRows

      public List<Object[]> getRows()