java.lang.Object
org.tentackle.fx.table.type.AbstractTableCellType<T>
- Type Parameters:
T- type of the content in a cell
- All Implemented Interfaces:
TableCellType<T>
- Direct Known Subclasses:
AbstractDateTimeTableCellType,BooleanTableCellType,EnumTableCellType,I18NTextTableCellType,NumberTableCellType,ObjectTableCellType,StringTableCellType
Base class of a table and treetable cell type.
- Author:
- harald
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringapplyCaseConversion(Boolean caseConversion, String text) Applies the case conversion.Gets the editor component.Class<?>Gets the intrinsic type of the editor.voidupdateAlignment(FxTableCell<?, T> tableCell, javafx.geometry.Pos alignment) Updates the alignment of the table cell's contents.voidupdateAlignment(FxTreeTableCell<?, T> treeTableCell, javafx.geometry.Pos alignment) Updates the alignment of the treetable cell's contents.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.tentackle.fx.table.TableCellType
updateItem, updateItem
-
Field Details
-
editor
-
-
Constructor Details
-
AbstractTableCellType
public AbstractTableCellType()Parent constructor.
-
-
Method Details
-
updateAlignment
Updates the alignment of the table cell's contents.- Parameters:
tableCell- the cell, never nullalignment- the alignment suggested by the cell type, never null
-
updateAlignment
Updates the alignment of the treetable cell's contents.- Parameters:
treeTableCell- the cell, never nullalignment- the alignment suggested by the cell type, never null
-
getEditor
Description copied from interface:TableCellTypeGets the editor component.- Specified by:
getEditorin interfaceTableCellType<T>- Returns:
- the editor component, never null
-
getEditorType
Description copied from interface:TableCellTypeGets the intrinsic type of the editor.- Specified by:
getEditorTypein interfaceTableCellType<T>- Returns:
- the editor's type
-
applyCaseConversion
Applies the case conversion.- Parameters:
caseConversion- true = convert to uppercase, false = lowercase, null = no conversion (default)text- the original text- Returns:
- the converted text
-