Class AbstractTextWrapCellSupport<T extends javafx.scene.control.Control,C extends javafx.scene.control.IndexedCell<I>,I>

java.lang.Object
com.iamsoft.util.ui.javafx.table.AbstractTextWrapCellSupport<T,C,I>
Type Parameters:
T - Table type.
C - Cell type.
I - Cell item type
Direct Known Subclasses:
TextWrapTableCellSupport, TextWrapTreeTableCellSupport

public abstract class AbstractTextWrapCellSupport<T extends javafx.scene.control.Control,C extends javafx.scene.control.IndexedCell<I>,I> extends Object
Support for table cells which support text wrapping.
  • Property Details

    • lineWrap

      public javafx.beans.property.BooleanProperty lineWrapProperty
      See Also:
    • tableColumn

      protected abstract javafx.beans.property.ReadOnlyObjectProperty<? extends javafx.scene.control.TableColumnBase<?,?>> tableColumnProperty
      See Also:
  • Field Details

  • Constructor Details

    • AbstractTextWrapCellSupport

      public AbstractTextWrapCellSupport(C pTableCell)
  • Method Details

    • getTableCell

      public C getTableCell()
    • getTextFlow

      protected javafx.scene.text.TextFlow getTextFlow()
      The text flow which is used to show the wrapped text in the cell.
    • getWrappedTextNode

      protected javafx.scene.text.Text getWrappedTextNode()
    • lineWrapProperty

      public javafx.beans.property.BooleanProperty lineWrapProperty()
      See Also:
    • getLineWrap

      public boolean getLineWrap()
      Gets the value of the property lineWrap.
      Property description:
    • getTableColumn

      protected javafx.scene.control.TableColumnBase<?,?> getTableColumn()
      Gets the value of the property tableColumn.
      Property description:
    • tableColumnProperty

      protected abstract javafx.beans.property.ReadOnlyObjectProperty<? extends javafx.scene.control.TableColumnBase<?,?>> tableColumnProperty()
      See Also:
    • getTableRow

      protected abstract javafx.scene.control.IndexedCell<?> getTableRow()
    • getTableView

      protected abstract T getTableView()
    • initTruncateFunction

      public void initTruncateFunction()
    • updateItem

      public void updateItem(I pItem, boolean pEmpty)
    • updateItem

      protected void updateItem()
    • doUpdateItem

      protected void doUpdateItem(I pItem, boolean pEmpty)
    • updateCellText

      protected void updateCellText(String pText)
    • setupWrappedText

      protected void setupWrappedText(String pText)
    • setupText

      protected void setupText(String pText)
    • updateRowHeightIfNeeded

      protected void updateRowHeightIfNeeded()
    • adjustPrefHeight

      protected void adjustPrefHeight()
    • filterSelectBindingLogging

      public static void filterSelectBindingLogging()
    • setStringConverter

      public static <V> void setStringConverter(javafx.scene.control.TableColumnBase<?,V> pColumn, Function<V,String> pConverter)
    • getDisplayText

      public String getDisplayText(I pItem)
    • getDisplayText

      public static String getDisplayText(javafx.scene.control.TableColumnBase<?,?> pColumn, Object pItem)