java.lang.Object
org.tentackle.fx.table.type.AbstractTableCellType<T>
org.tentackle.fx.table.type.AbstractDateTimeTableCellType<T>
- All Implemented Interfaces:
TableCellType<T>
- Direct Known Subclasses:
DateTableCellType,InstantTableCellType,LocalDateTableCellType,LocalDateTimeTableCellType,LocalTimeTableCellType,OffsetDateTimeTableCellType,OffsetTimeTableCellType,TimestampTableCellType,TimeTableCellType,ZonedDateTimeTableCellType
Base cell type for all date- and time-related types.
- Author:
- harald
-
Field Summary
Fields inherited from class org.tentackle.fx.table.type.AbstractTableCellType
editor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringformatItem(DateTimeFormatter fmt, T item) Formats the item.protected DateTimeFormattergetFormatter(TableColumnConfiguration<?, T> config) Gets the formatter.voidupdateItem(FxTableCell<?, T> tableCell, T item) Updates the table cells view.voidupdateItem(FxTreeTableCell<?, T> treeTableCell, T item) Updates the treetable cells view.Methods inherited from class org.tentackle.fx.table.type.AbstractTableCellType
applyCaseConversion, getEditor, getEditorType, updateAlignment, updateAlignment
-
Constructor Details
-
AbstractDateTimeTableCellType
public AbstractDateTimeTableCellType()Parent constructor.
-
-
Method Details
-
updateItem
Description copied from interface:TableCellTypeUpdates the table cells view.- Parameters:
tableCell- the table cell, never nullitem- the item for the cell, never null
-
updateItem
Description copied from interface:TableCellTypeUpdates the treetable cells view.- Parameters:
treeTableCell- the table cell, never nullitem- the item for the cell, never null
-
getFormatter
Gets the formatter.- Parameters:
config- the table column configuration- Returns:
- the formatter, null if default according to type
-
formatItem
Formats the item.- Parameters:
fmt- the formatteritem- the item- Returns:
- the formatted string
-