-
public interface TableColumnMutable attributes of a table column Attributes are mutable because a function that composes a table needs to be adjust spacing, etc. for best presentation.- Author:
- Don Mendelson
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTableColumn.Alignment
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TableColumn.AlignmentgetAlignment()StringgetHeading()Displayed table headingStringgetKey()Data key for values displayed in this columnintgetWidth()Width of the columnvoidsetHeading(String display)Set the heading to display, may be different than keyvoidupdateDatatype(Class<?> datatype)Update the inferred datatype of this columnintupdateWidth(int newWidth)Update width allowed for column
-
-
-
Method Detail
-
getAlignment
TableColumn.Alignment getAlignment()
- Returns:
- column alignment
-
getHeading
String getHeading()
Displayed table heading- Returns:
- displayable string
-
getKey
String getKey()
Data key for values displayed in this column- Returns:
- data key
-
getWidth
int getWidth()
Width of the column- Returns:
- the column width
-
setHeading
void setHeading(String display)
Set the heading to display, may be different than key- Parameters:
display- text to display
-
updateDatatype
void updateDatatype(Class<?> datatype)
Update the inferred datatype of this column- Parameters:
datatype- a datatype to control formatting of data in the column
-
updateWidth
int updateWidth(int newWidth)
Update width allowed for column- Parameters:
newWidth- minimum space requested for this column- Returns:
- actual space allocated so far, may be larger than
newWidth
-
-