Class DataTableColumn

java.lang.Object
io.bdeploy.common.cli.data.DataTableColumn

public class DataTableColumn extends Object
A single column in a DataTable.
  • Constructor Details

    • DataTableColumn

      public DataTableColumn(String label, int preferredWidth)
      Parameters:
      label - a human readable label for the column. A machine readable name will be calculated by removing spaces and lower-camel-casing words.
      preferredWidth - the preferred width of the column.
    • DataTableColumn

      public DataTableColumn(String name, String label, int preferredWidth)
      Parameters:
      name - the machine readable name of the column
      label - the human readable label of the column
      preferredWidth - the preferred width of the column in characters.
  • Method Details

    • getLabel

      public String getLabel()
      Returns:
      a human readable label for the column
    • getName

      public String getName()
      Returns:
      a machine readable name for the column
    • getWidth

      public int getWidth()
      Returns:
      the width in characters
    • setMaxCellLength

      public void setMaxCellLength(int maxCellLength)