Package io.bdeploy.common.cli.data
Class DataTableColumn
java.lang.Object
io.bdeploy.common.cli.data.DataTableColumn
A single column in a
DataTable.-
Constructor Summary
ConstructorsConstructorDescriptionDataTableColumn(String label, int preferredWidth) DataTableColumn(String name, String label, int preferredWidth) -
Method Summary
-
Constructor Details
-
DataTableColumn
- 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
- Parameters:
name- the machine readable name of the columnlabel- the human readable label of the columnpreferredWidth- the preferred width of the column in characters.
-
-
Method Details
-
getLabel
- Returns:
- a human readable label for the column
-
getName
- Returns:
- a machine readable name for the column
-
getWidth
public int getWidth()- Returns:
- the width in characters
-
setMaxCellLength
public void setMaxCellLength(int maxCellLength)
-