- 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:
BooleanTableCellType,EnumTableCellType,LocalDateTableCellType,LocalDateTimeTableCellType,LocalTimeTableCellType,NumberTableCellType,ObjectTableCellType,StringTableCellType,UtilDateTableCellType
public abstract class AbstractTableCellType<T> extends java.lang.Object implements TableCellType<T>
Base class of a table cell type.- Author:
- harald
-
-
Field Summary
Fields Modifier and Type Field Description protected FxComponenteditor
-
Constructor Summary
Constructors Constructor Description AbstractTableCellType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FxComponentgetEditor()Gets the editor component.java.lang.Class<?>getEditorType()Gets the intrinsic type of the editor.voidupdateAlignment(FxTableCell<?,T> tableCell, javafx.geometry.Pos alignment)Updates the alignment of the table cell's contents.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.tentackle.fx.table.TableCellType
updateItem
-
-
-
-
Field Detail
-
editor
protected FxComponent editor
-
-
Method Detail
-
updateAlignment
public void updateAlignment(FxTableCell<?,T> tableCell, javafx.geometry.Pos alignment)
Updates the alignment of the table cell's contents.- Parameters:
tableCell- the cell, never nullalignment- the alignment suggested by the cell type, never null
-
getEditor
public FxComponent getEditor()
Description copied from interface:TableCellTypeGets the editor component.- Specified by:
getEditorin interfaceTableCellType<T>- Returns:
- the editor component, never null
-
getEditorType
public java.lang.Class<?> getEditorType()
Description copied from interface:TableCellTypeGets the intrinsic type of the editor.- Specified by:
getEditorTypein interfaceTableCellType<T>- Returns:
- the editor's type
-
-