Class AbstractTableCellType<T>

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

public abstract class AbstractTableCellType<T> extends Object implements TableCellType<T>
Base class of a table and treetable cell type.
Author:
harald
  • Field Details

  • Constructor Details

    • AbstractTableCellType

      public AbstractTableCellType()
      Parent constructor.
  • Method Details

    • 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 null
      alignment - the alignment suggested by the cell type, never null
    • updateAlignment

      public void updateAlignment(FxTreeTableCell<?,T> treeTableCell, javafx.geometry.Pos alignment)
      Updates the alignment of the treetable cell's contents.
      Parameters:
      treeTableCell - the cell, never null
      alignment - the alignment suggested by the cell type, never null
    • getEditor

      public FxComponent getEditor()
      Description copied from interface: TableCellType
      Gets the editor component.
      Specified by:
      getEditor in interface TableCellType<T>
      Returns:
      the editor component, never null
    • getEditorType

      public Class<?> getEditorType()
      Description copied from interface: TableCellType
      Gets the intrinsic type of the editor.
      Specified by:
      getEditorType in interface TableCellType<T>
      Returns:
      the editor's type
    • applyCaseConversion

      protected String applyCaseConversion(Boolean caseConversion, String text)
      Applies the case conversion.
      Parameters:
      caseConversion - true = convert to uppercase, false = lowercase, null = no conversion (default)
      text - the original text
      Returns:
      the converted text