Module com.iamsoft.util.ui
Package com.iamsoft.util.ui.javafx.table
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.
-
-
Field Summary
Fields Modifier and Type Field Description static StringTEXT_CONTAINER_STYLE_CLASS
-
Constructor Summary
Constructors Constructor Description AbstractTextWrapCellSupport(C pTableCell)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidadjustPrefHeight()protected voiddoUpdateItem(I pItem, boolean pEmpty)static voidfilterSelectBindingLogging()StringgetDisplayText(I pItem)static StringgetDisplayText(javafx.scene.control.TableColumnBase<?,?> pColumn, Object pItem)booleangetLineWrap()CgetTableCell()protected javafx.scene.control.TableColumnBase<?,?>getTableColumn()protected abstract javafx.scene.control.IndexedCell<?>getTableRow()protected abstract TgetTableView()protected javafx.scene.text.TextFlowgetTextFlow()The text flow which is used to show the wrapped text in the cell.protected javafx.scene.text.TextgetWrappedTextNode()voidinitTruncateFunction()javafx.beans.property.BooleanPropertylineWrapProperty()static <V> voidsetStringConverter(javafx.scene.control.TableColumnBase<?,V> pColumn, Function<V,String> pConverter)protected voidsetupText(String pText)protected voidsetupWrappedText(String pText)protected abstract javafx.beans.property.ReadOnlyObjectProperty<? extends javafx.scene.control.TableColumnBase<?,?>>tableColumnProperty()protected voidupdateCellText(String pText)protected voidupdateItem()voidupdateItem(I pItem, boolean pEmpty)protected voidupdateRowHeightIfNeeded()
-
-
-
Field Detail
-
TEXT_CONTAINER_STYLE_CLASS
public static final String TEXT_CONTAINER_STYLE_CLASS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractTextWrapCellSupport
public AbstractTextWrapCellSupport(C pTableCell)
-
-
Method Detail
-
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()
-
getLineWrap
public boolean getLineWrap()
-
getTableColumn
protected javafx.scene.control.TableColumnBase<?,?> getTableColumn()
-
tableColumnProperty
protected abstract javafx.beans.property.ReadOnlyObjectProperty<? extends javafx.scene.control.TableColumnBase<?,?>> tableColumnProperty()
-
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)
-
-