Module org.tentackle.fx
Package org.tentackle.fx.table.type
Class NumberTableCellType<T extends java.lang.Number>
- java.lang.Object
-
- org.tentackle.fx.table.type.AbstractTableCellType<T>
-
- org.tentackle.fx.table.type.NumberTableCellType<T>
-
- 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
-
-
Field Summary
-
Fields inherited from class org.tentackle.fx.table.type.AbstractTableCellType
editor
-
-
Constructor Summary
Constructors Constructor Description NumberTableCellType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.text.DecimalFormatgetFormat(FxTableCell<?,T> tableCell, T item)Gets the number format.voidupdateItem(FxTableCell<?,T> tableCell, T item)Updates the cells view.-
Methods inherited from class org.tentackle.fx.table.type.AbstractTableCellType
getEditor, getEditorType, updateAlignment
-
-
-
-
Method Detail
-
updateItem
public void updateItem(FxTableCell<?,T> tableCell, T item)
Description copied from interface:TableCellTypeUpdates the cells view.- Parameters:
tableCell- the table cell, never nullitem- 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 cellitem- the number- Returns:
- the format, null if default toString()
-
-