Class AbstractDateTimeTableCellType<T>

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

public abstract class AbstractDateTimeTableCellType<T> extends AbstractTableCellType<T>
Base cell type for all date- and time-related types.
Author:
harald
  • Constructor Details

    • AbstractDateTimeTableCellType

      public AbstractDateTimeTableCellType()
      Parent constructor.
  • Method Details

    • updateItem

      public void updateItem(FxTableCell<?,T> tableCell, T item)
      Description copied from interface: TableCellType
      Updates the table cells view.
      Parameters:
      tableCell - the table cell, never null
      item - the item for the cell, never null
    • updateItem

      public void updateItem(FxTreeTableCell<?,T> treeTableCell, T item)
      Description copied from interface: TableCellType
      Updates the treetable cells view.
      Parameters:
      treeTableCell - the table cell, never null
      item - the item for the cell, never null
    • getFormatter

      protected DateTimeFormatter getFormatter(TableColumnConfiguration<?,T> config)
      Gets the formatter.
      Parameters:
      config - the table column configuration
      Returns:
      the formatter, null if default according to type
    • formatItem

      protected abstract String formatItem(DateTimeFormatter fmt, T item)
      Formats the item.
      Parameters:
      fmt - the formatter
      item - the item
      Returns:
      the formatted string