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 String
TEXT_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 void
adjustPrefHeight()
protected void
doUpdateItem(I pItem, boolean pEmpty)
static void
filterSelectBindingLogging()
String
getDisplayText(I pItem)
static String
getDisplayText(javafx.scene.control.TableColumnBase<?,?> pColumn, Object pItem)
boolean
getLineWrap()
C
getTableCell()
protected javafx.scene.control.TableColumnBase<?,?>
getTableColumn()
protected abstract javafx.scene.control.IndexedCell<?>
getTableRow()
protected abstract T
getTableView()
protected javafx.scene.text.TextFlow
getTextFlow()
The text flow which is used to show the wrapped text in the cell.protected javafx.scene.text.Text
getWrappedTextNode()
void
initTruncateFunction()
javafx.beans.property.BooleanProperty
lineWrapProperty()
static <V> void
setStringConverter(javafx.scene.control.TableColumnBase<?,V> pColumn, Function<V,String> pConverter)
protected void
setupText(String pText)
protected void
setupWrappedText(String pText)
protected abstract javafx.beans.property.ReadOnlyObjectProperty<? extends javafx.scene.control.TableColumnBase<?,?>>
tableColumnProperty()
protected void
updateCellText(String pText)
protected void
updateItem()
void
updateItem(I pItem, boolean pEmpty)
protected void
updateRowHeightIfNeeded()
-
-
-
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)
-
-