Class Table
- java.lang.Object
-
- com.djrapitops.plan.extension.table.Table
-
public final class Table extends java.lang.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Table.Factory
Factory for creating newTable
objects.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Table.Factory
builder()
Create a new Table Factory.java.lang.String[]
getColumns()
Icon[]
getIcons()
int
getMaxColumnSize()
java.util.List<java.lang.Object[]>
getRows()
-
-
-
Method Detail
-
builder
public static Table.Factory builder()
Create a new Table Factory.- Returns:
- a new Table Factory.
-
getColumns
public java.lang.String[] getColumns()
-
getMaxColumnSize
public int getMaxColumnSize()
-
getIcons
public Icon[] getIcons()
-
getRows
public java.util.List<java.lang.Object[]> getRows()
-
-