Class NumberTableCellType<T extends java.lang.Number>

  • Type Parameters:
    T - the item type
    All Implemented Interfaces:
    TableCellType<T>
    Direct Known Subclasses:
    BMoneyTableCellType

    @TableCellTypeService(java.lang.Number.class)
    public class NumberTableCellType<T extends java.lang.Number>
    extends AbstractTableCellType<T>
    A number cell type.
    Provided as a fallback to application specific types that don't provide t
    Author:
    harald
    • Constructor Detail

      • NumberTableCellType

        public NumberTableCellType()
    • Method Detail

      • updateItem

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

        protected java.text.DecimalFormat getFormat​(FxTableCell<?,​T> tableCell,
                                                    T item)
        Gets the number format.
        Parameters:
        tableCell - the cell
        item - the number
        Returns:
        the format, null if default toString()