-
- Type Parameters:
S- type of the objects contained within the table'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 column.- Author:
- harald
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javafx.geometry.PosgetAlignment()Defines the alignment of the column.FxTableBinding<S,T>getBinding()Gets the binding for this column.java.lang.BooleangetCaseConversion()Gets the case conversion.java.text.DateFormatgetDateFormat()Gets the date format.java.time.format.DateTimeFormattergetDateTimeFormatter()Gets the date or time formatter.java.lang.StringgetDisplayedName()Gets the column name displayed in the column header.java.lang.BooleangetEditable()Returns whether the column is editable.FxComponentgetEditor()Gets the editor component.java.lang.reflect.TypegetGenericType()Gets the generic type.java.lang.StringgetInvalidChars()Gets invalid characters.java.lang.IntegergetMaxColumns()Gets the maximum columns for text cell editors.java.lang.StringgetName()Gets the column name.
This is usually the binding path.
The name is also used as a key to the table preferences.java.text.DecimalFormatgetNumberFormat()Gets the number format.java.lang.StringgetPattern()Defines the format for numeric or date/time-types.
If null is returned a default format will be used according to the column class.java.lang.IntegergetScale()Gets the scale for fractional numeric cell editors.java.lang.BooleangetSummable()Returns whether the column is summable.javafx.scene.control.TableColumn<S,T>getTableColumn()Gets the table column.TableConfiguration<S>getTableConfiguration()Gets the table configuration.java.lang.Class<T>getType()Determines the class for a given column.java.lang.StringgetValidChars()Gets allowed characters.java.lang.BooleanisAutoSelect()Gets the autoselect flag.java.lang.BooleanisBlankZero()Defines the "blankzero" attribute of the column.booleanisEditable()Returns whether column is editable.booleanisSummable()Determines whether the column is summable.java.lang.BooleanisUnsigned()Returns whether a numeric field is unsigned or signed.voidsetAlignment(javafx.geometry.Pos alignment)Sets the alignment within the cell.voidsetAutoSelect(java.lang.Boolean autoSelect)Sets the autoselect feature.voidsetBinding(FxTableBinding<S,T> binding)Sets the binding.voidsetBlankZero(java.lang.Boolean blankZero)Sets whether to blank out numeric zero values.voidsetCaseConversion(java.lang.Boolean caseConversion)Sets the case conversion.voidsetDisplayedName(java.lang.String displayName)Sets the column name displayed in the column header.voidsetEditable(java.lang.Boolean editable)Sets whether the column is editable.voidsetEditor(FxComponent editor)Sets the editor component.voidsetGenericType(java.lang.reflect.Type genericType)Sets the generic type.voidsetInvalidChars(java.lang.String invalidChars)Sets invalid characters.voidsetMaxColumns(java.lang.Integer maxColumns)Sets the max columns.voidsetPattern(java.lang.String pattern)Sets the formatting string.voidsetScale(java.lang.Integer scale)Sets the numeric scale.voidsetSummable(java.lang.Boolean summable)Sets whether the column is summable.voidsetType(java.lang.Class<T> type)Sets the column type.voidsetUnsigned(java.lang.Boolean unsigned)Sets whether a numeric field is unsigned or signed.voidsetValidChars(java.lang.String validChars)Sets allowed characters.
-
-
-
Method Detail
-
getTableConfiguration
TableConfiguration<S> getTableConfiguration()
Gets the table configuration.- Returns:
- the table configuration
-
getName
java.lang.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
java.lang.String getDisplayedName()
Gets the column name displayed in the column header.- Returns:
- the display name of the column
-
setDisplayedName
void setDisplayedName(java.lang.String displayName)
Sets the column name displayed in the column header.- Parameters:
displayName- the display name of the column
-
getType
java.lang.Class<T> getType()
Determines the class for a given column.- Returns:
- the column class
-
setType
void setType(java.lang.Class<T> type)
Sets the column type.- Parameters:
type- the type
-
setGenericType
void setGenericType(java.lang.reflect.Type genericType)
Sets the generic type.- Parameters:
genericType- the generic type
-
getGenericType
java.lang.reflect.Type getGenericType()
Gets the generic type.- Returns:
- the generic type
-
getPattern
java.lang.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
void setPattern(java.lang.String pattern)
Sets the formatting string.- Parameters:
pattern- the format pattern
-
getNumberFormat
java.text.DecimalFormat getNumberFormat()
Gets the number format.- Returns:
- the number format, null if default
-
getDateFormat
java.text.DateFormat getDateFormat()
Gets the date format.- Returns:
- the date format, null if default
-
getDateTimeFormatter
java.time.format.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
java.lang.Boolean isBlankZero()
Defines the "blankzero" attribute of the column.- Returns:
- true if blank zeros, false if not, null if use default from editor
-
setBlankZero
void setBlankZero(java.lang.Boolean blankZero)
Sets whether to blank out numeric zero values.- Parameters:
blankZero- true if blank zeros, false if not, null if use default from editor
-
setUnsigned
void setUnsigned(java.lang.Boolean unsigned)
Sets whether a numeric field is unsigned or signed.- Parameters:
unsigned- true if unsigned, null if use default from editor
-
isUnsigned
java.lang.Boolean isUnsigned()
Returns whether a numeric field is unsigned or signed.- Returns:
- true if unsigned, null if use default from editor
-
setValidChars
void setValidChars(java.lang.String validChars)
Sets allowed characters.- Parameters:
validChars- the valid characters, null if use default from editor
-
getValidChars
java.lang.String getValidChars()
Gets allowed characters.- Returns:
- the valid characters, null if use default from editor
-
setInvalidChars
void setInvalidChars(java.lang.String invalidChars)
Sets invalid characters.- Parameters:
invalidChars- the invalid characters, null if use default from editor
-
getInvalidChars
java.lang.String getInvalidChars()
Gets invalid characters.- Returns:
- the invalid characters, null if use default from editor
-
isAutoSelect
java.lang.Boolean isAutoSelect()
Gets the autoselect flag.- Returns:
- true if autoselect, false if not, null if use default from editor
-
setAutoSelect
void setAutoSelect(java.lang.Boolean autoSelect)
Sets the autoselect feature.- Parameters:
autoSelect- true if autoselect, false if not, null if use default from editor
-
getMaxColumns
java.lang.Integer getMaxColumns()
Gets the maximum columns for text cell editors.- Returns:
- the max columns, null if not defined
-
setMaxColumns
void setMaxColumns(java.lang.Integer maxColumns)
Sets the max columns.- Parameters:
maxColumns- the max columns, null if not defined
-
getScale
java.lang.Integer getScale()
Gets the scale for fractional numeric cell editors.- Returns:
- the scale, null if not defined
-
setScale
void setScale(java.lang.Integer scale)
Sets the numeric scale.- Parameters:
scale- the scale, null if not defined
-
getCaseConversion
java.lang.Boolean getCaseConversion()
Gets the case conversion.- Returns:
- true = convert to uppercase, false = lowercase, null = no conversion (default)
-
setCaseConversion
void setCaseConversion(java.lang.Boolean caseConversion)
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
void setSummable(java.lang.Boolean summable)
Sets whether the column is summable.- Parameters:
summable-Boolean.TRUEif summable,Boolean.FALSEif not, NULL if numeric type
-
getSummable
java.lang.Boolean getSummable()
Returns whether the column is summable.- Returns:
Boolean.TRUEif summable,Boolean.FALSEif not, NULL if numeric type
-
getEditable
java.lang.Boolean getEditable()
Returns whether the column is editable.- Returns:
Boolean.TRUEif editable,Boolean.FALSEif not, NULL if depends on table configuration
-
setEditable
void setEditable(java.lang.Boolean editable)
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 if use default from
TableCellType.getEditor()
-
setEditor
void setEditor(FxComponent editor)
Sets the editor component.- Parameters:
editor- the editor, null if use default fromTableCellType.getEditor()
-
getBinding
FxTableBinding<S,T> getBinding()
Gets the binding for this column.- Returns:
- the binding, null if none
-
setBinding
void setBinding(FxTableBinding<S,T> binding)
Sets the binding.- Parameters:
binding- the binding
-
-