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) Apply formatting to column five.columnFour
(String columnName, Icon icon) Set fourth column name and icon.columnFourFormat
(TableColumnFormat tableColumnFormat) Apply formatting to column four.Set first column name and icon.columnOneFormat
(TableColumnFormat tableColumnFormat) Apply formatting to column one.columnThree
(String columnName, Icon icon) Set third column name and icon.columnThreeFormat
(TableColumnFormat tableColumnFormat) Apply formatting to column three.Set second column name and icon.columnTwoFormat
(TableColumnFormat tableColumnFormat) Apply formatting to column two.
-
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
Apply formatting to column one.- Parameters:
tableColumnFormat
- Format to apply- Returns:
- Factory.
-
columnTwoFormat
Apply formatting to column two.- Parameters:
tableColumnFormat
- Format to apply- Returns:
- Factory.
-
columnThreeFormat
Apply formatting to column three.- Parameters:
tableColumnFormat
- Format to apply- Returns:
- Factory.
-
columnFourFormat
Apply formatting to column four.- Parameters:
tableColumnFormat
- Format to apply- Returns:
- Factory.
-
columnFiveFormat
Apply formatting to column five.- Parameters:
tableColumnFormat
- Format to apply- Returns:
- Factory.
-
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.
-