Class Table.Factory

java.lang.Object
com.djrapitops.plan.extension.table.Table.Factory
Enclosing class:
Table

public static final class Table.Factory extends Object
Factory for creating new Table objects.
  • Method Details

    • columnOne

      public Table.Factory columnOne(String columnName, Icon icon)
      Set first column name and icon.
      Parameters:
      columnName - Name of the column.
      icon - Icon of the column, color is ignored.
      Returns:
      Factory.
    • columnTwo

      public Table.Factory columnTwo(String columnName, Icon icon)
      Set second column name and icon.
      Parameters:
      columnName - Name of the column.
      icon - Icon of the column, color is ignored.
      Returns:
      Factory.
    • columnThree

      public Table.Factory columnThree(String columnName, Icon icon)
      Set third column name and icon.
      Parameters:
      columnName - Name of the column.
      icon - Icon of the column, color is ignored.
      Returns:
      Factory.
    • columnFour

      public Table.Factory columnFour(String columnName, Icon icon)
      Set fourth column name and icon.
      Parameters:
      columnName - Name of the column.
      icon - Icon of the column, color is ignored.
      Returns:
      Factory.
    • columnFive

      public Table.Factory columnFive(String columnName, Icon icon)
      Set fifth column name and icon.
      Parameters:
      columnName - Name of the column.
      icon - Icon of the column, color is ignored.
      Returns:
      Factory.
    • columnOneFormat

      public Table.Factory columnOneFormat(TableColumnFormat tableColumnFormat)
    • columnTwoFormat

      public Table.Factory columnTwoFormat(TableColumnFormat tableColumnFormat)
    • columnThreeFormat

      public Table.Factory columnThreeFormat(TableColumnFormat tableColumnFormat)
    • columnFourFormat

      public Table.Factory columnFourFormat(TableColumnFormat tableColumnFormat)
    • columnFiveFormat

      public Table.Factory columnFiveFormat(TableColumnFormat tableColumnFormat)
    • addRow

      public Table.Factory addRow(Object... values)
      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

      public Table build()
      Finish building the table.
      Returns:
      Finished Table object.