Module org.tentackle.fx
Package org.tentackle.fx.table.type
Class NumberTableCellType<T extends 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 Number>
extends AbstractTableCellType<T>
The
Provided as a fallback to application specific types that don't provide t
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected DecimalFormatgetFormat(TableColumnConfiguration<?, T> config, T item) Gets the number format.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
-
NumberTableCellType
public NumberTableCellType()Creates the cell type forNumber.
-
-
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
-
getFormat
Gets the number format.- Parameters:
config- the column configurationitem- the number- Returns:
- the format, null if default toString()
-