- Type Parameters:
S- type of the objects contained within the table's or treetable's items listT- type of the content in all cells in this column
- All Known Implementing Classes:
DefaultTableColumnConfiguration
public interface TableColumnConfiguration<S,T>
Configuration for a table or treetable column.
- Author:
- harald
-
Method Summary
Modifier and TypeMethodDescriptionjavafx.geometry.PosDefines the alignment of the column.Gets the binding for this column.Gets the case conversion.Gets the specific table cell type.Gets the date or time formatter.Gets the column name displayed in the column header.Returns whether the column is editable.Gets the editor component.Gets the generic type.Gets invalid characters.Gets the maximum columns for text cell editors.getName()Gets the column name.
This is usually the binding path.
The name is also used as a key to the table preferences.Gets the number format.Defines the format for numeric or date/time-types.
If null is returned a default format will be used according to the column class.getScale()Gets the scale for fractional numeric cell editors.Returns whether the column is summable.Gets or creates the table column.
Used if configuration applies to aTableView.Gets the table configuration.Gets or creates the tree table column.
Used if configuration applies to aTreeTableView.getType()Determines the class for a given column.Gets allowed characters.Gets the autoselect flag.Defines the "blankzero" attribute of the column.booleanReturns whether column is editable.booleanDetermines whether the column is summable.Returns whether a numeric field is unsigned or signed.voidsetAlignment(javafx.geometry.Pos alignment) Sets the alignment within the cell.voidsetAutoSelect(Boolean autoSelect) Sets the autoselect feature.voidsetBinding(FxTableBinding<S, T> binding) Sets the binding.voidsetBlankZero(Boolean blankZero) Sets whether to blank out numeric zero values.voidsetCaseConversion(Boolean caseConversion) Sets the case conversion.voidsetCellType(TableCellType<T> cellType) Sets the specific table cell type.voidsetDisplayedName(String displayName) Sets the column name displayed in the column header.voidsetEditable(Boolean editable) Sets whether the column is editable.voidsetEditor(FxComponent editor) Sets the editor component.voidsetGenericType(Type genericType) Sets the generic type.voidsetInvalidChars(String invalidChars) Sets invalid characters.voidsetMaxColumns(Integer maxColumns) Sets the max columns.voidsetPattern(String pattern) Sets the formatting string.voidSets the numeric scale.voidsetSummable(Boolean summable) Sets whether the column is summable.voidSets the column type.voidsetUnsigned(Boolean unsigned) Sets whether a numeric field is unsigned or signed.voidsetValidChars(String validChars) Sets allowed characters.
-
Method Details
-
getTableConfiguration
TableConfiguration<S> getTableConfiguration()Gets the table configuration.- Returns:
- the table configuration
-
getName
String getName()Gets the column name.
This is usually the binding path.
The name is also used as a key to the table preferences.- Returns:
- the name of the column
-
getDisplayedName
String getDisplayedName()Gets the column name displayed in the column header.- Returns:
- the display name of the column
-
setDisplayedName
Sets the column name displayed in the column header.- Parameters:
displayName- the display name of the column
-
getType
Determines the class for a given column.- Returns:
- the column class
-
setType
Sets the column type.- Parameters:
type- the type
-
setGenericType
Sets the generic type.- Parameters:
genericType- the generic type
-
getGenericType
Type getGenericType()Gets the generic type.- Returns:
- the generic type
-
getCellType
TableCellType<T> getCellType()Gets the specific table cell type.- Returns:
- the cell type, null to determine from column type
- See Also:
-
setCellType
Sets the specific table cell type.- Parameters:
cellType- the cell type, null to determine from column type
-
getPattern
String getPattern()Defines the format for numeric or date/time-types.
If null is returned a default format will be used according to the column class.- Returns:
- the format pattern or null if default
-
setPattern
Sets the formatting string.- Parameters:
pattern- the format pattern
-
getNumberFormat
DecimalFormat getNumberFormat()Gets the number format.- Returns:
- the number format, null if default
-
getDateTimeFormatter
DateTimeFormatter getDateTimeFormatter()Gets the date or time formatter.- Returns:
- the formatter, null if default
-
getAlignment
javafx.geometry.Pos getAlignment()Defines the alignment of the column.- Returns:
- the alignment or null if default
-
setAlignment
void setAlignment(javafx.geometry.Pos alignment) Sets the alignment within the cell.- Parameters:
alignment- the alignment
-
isBlankZero
Boolean isBlankZero()Defines the "blankzero" attribute of the column.- Returns:
- true if blank zeros, false if not, null if use default from editor
-
setBlankZero
Sets whether to blank out numeric zero values.- Parameters:
blankZero- true if blank zeros, false if not, null if use default from editor
-
setUnsigned
Sets whether a numeric field is unsigned or signed.- Parameters:
unsigned- true if unsigned, null if use default from editor
-
isUnsigned
Boolean isUnsigned()Returns whether a numeric field is unsigned or signed.- Returns:
- true if unsigned, null if use default from editor
-
setValidChars
Sets allowed characters.- Parameters:
validChars- the valid characters, null to use default from editor
-
getValidChars
String getValidChars()Gets allowed characters.- Returns:
- the valid characters, null to use default from editor
-
setInvalidChars
Sets invalid characters.- Parameters:
invalidChars- the invalid characters, null to use default from editor
-
getInvalidChars
String getInvalidChars()Gets invalid characters.- Returns:
- the invalid characters, null to use default from editor
-
isAutoSelect
Boolean isAutoSelect()Gets the autoselect flag.- Returns:
- true if autoselect, false if not, null if use default from editor
-
setAutoSelect
Sets the autoselect feature.- Parameters:
autoSelect- true if autoselect, false if not, null if use default from editor
-
getMaxColumns
Integer getMaxColumns()Gets the maximum columns for text cell editors.- Returns:
- the max columns, null if not defined
-
setMaxColumns
Sets the max columns.- Parameters:
maxColumns- the max columns, null if not defined
-
getScale
Integer getScale()Gets the scale for fractional numeric cell editors.- Returns:
- the scale, null if not defined
-
setScale
Sets the numeric scale.- Parameters:
scale- the scale, null if not defined
-
getCaseConversion
Boolean getCaseConversion()Gets the case conversion.- Returns:
- true = convert to uppercase, false = lowercase, null = no conversion (default)
-
setCaseConversion
Sets the case conversion.- Parameters:
caseConversion- true = convert to uppercase, false = lowercase, null = no conversion (default)
-
isSummable
boolean isSummable()Determines whether the column is summable.- Returns:
- true if column is summable
-
setSummable
Sets whether the column is summable.- Parameters:
summable-Boolean.TRUEif summable,Boolean.FALSEif not, NULL if numeric type
-
getSummable
Boolean getSummable()Returns whether the column is summable.- Returns:
Boolean.TRUEif summable,Boolean.FALSEif not, NULL if numeric type
-
getEditable
Boolean getEditable()Returns whether the column is editable.- Returns:
Boolean.TRUEif editable,Boolean.FALSEif not, NULL if depends on table configuration
-
setEditable
Sets whether the column is editable.- Parameters:
editable-Boolean.TRUEif editable,Boolean.FALSEif not, NULL if depends on table configuration
-
isEditable
boolean isEditable()Returns whether column is editable.- Returns:
- true if editable, the default is false
-
getEditor
FxComponent getEditor()Gets the editor component.- Returns:
- the editor, null to use default from
TableCellType.getEditor()
-
setEditor
Sets the editor component.- Parameters:
editor- the editor, null to use default fromTableCellType.getEditor()
-
getBinding
FxTableBinding<S,T> getBinding()Gets the binding for this column.- Returns:
- the binding, null if none
-
setBinding
Sets the binding.- Parameters:
binding- the binding
-
getTableColumn
Gets or creates the table column.
Used if configuration applies to aTableView.- Returns:
- the table column, never null
-
getTreeTableColumn
Gets or creates the tree table column.
Used if configuration applies to aTreeTableView.- Returns:
- the tree table column, never null
-