Class HtmlTableBuilder.ColumnOption

java.lang.Object
com.illumon.util.jettyhelper.HtmlTableBuilder.ColumnOption
Enclosing class:
HtmlTableBuilder

public static class HtmlTableBuilder.ColumnOption
extends Object
Options for columns in the table.
  • Constructor Details

    • ColumnOption

      public ColumnOption​(String headerName, @Nullable String alignment, @Nullable String columnFormatStartTag, @Nullable String columnFormatEndTag)
      Constructor that allows all column formatting options
      Parameters:
      headerName - the column's name in the table header
      alignment - the color to use for alternating rows; if null, then no alignment will be applied
      columnFormatStartTag - formatting start tag that will be applied to all data in the column
      columnFormatEndTag - formatting end tag that will be applied to all data in the column
    • ColumnOption

      public ColumnOption​(String headerName, @Nullable String alignment)
      Constructor that doesn't apply any formatting to the column
      Parameters:
      headerName - the column's name in the table header
      alignment - the color to use for alternating rows; if null, then no alignment will be applied
    • ColumnOption

      public ColumnOption​(String headerName)
      Constructor that uses all defaults for the column
      Parameters:
      headerName - the column's name in the table header