Class Table.Factory
java.lang.Object
com.djrapitops.plan.extension.table.Table.Factory
- Enclosing class:
- Table
Factory for creating new
Table
objects.-
Method Summary
Modifier and TypeMethodDescriptionAdd a row of values to the table.build()
Finish building the table.columnFive
(String columnName, Icon icon) Set fifth column name and icon.columnFiveFormat
(TableColumnFormat tableColumnFormat) columnFour
(String columnName, Icon icon) Set fourth column name and icon.columnFourFormat
(TableColumnFormat tableColumnFormat) Set first column name and icon.columnOneFormat
(TableColumnFormat tableColumnFormat) columnThree
(String columnName, Icon icon) Set third column name and icon.columnThreeFormat
(TableColumnFormat tableColumnFormat) Set second column name and icon.columnTwoFormat
(TableColumnFormat tableColumnFormat)
-
Method Details
-
columnOne
Set first column name and icon.- Parameters:
columnName
- Name of the column.icon
- Icon of the column, color is ignored.- Returns:
- Factory.
-
columnTwo
Set second column name and icon.- Parameters:
columnName
- Name of the column.icon
- Icon of the column, color is ignored.- Returns:
- Factory.
-
columnThree
Set third column name and icon.- Parameters:
columnName
- Name of the column.icon
- Icon of the column, color is ignored.- Returns:
- Factory.
-
columnFour
Set fourth column name and icon.- Parameters:
columnName
- Name of the column.icon
- Icon of the column, color is ignored.- Returns:
- Factory.
-
columnFive
Set fifth column name and icon.- Parameters:
columnName
- Name of the column.icon
- Icon of the column, color is ignored.- Returns:
- Factory.
-
columnOneFormat
-
columnTwoFormat
-
columnThreeFormat
-
columnFourFormat
-
columnFiveFormat
-
addRow
Add a row of values to the table.- Parameters:
values
- One value per column you have defined,Object#toString()
will be called on the objects.- Returns:
- Factory.
- Throws:
IllegalArgumentException
- If given varargs for 'values' is null.
-
build
Finish building the table.- Returns:
- Finished Table object.
-