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.
-
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.BooleanProperty
protected abstract javafx.beans.property.ReadOnlyObjectProperty<? extends javafx.scene.control.TableColumnBase<?,
?>> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
doUpdateItem
(I pItem, boolean pEmpty) static void
getDisplayText
(I pItem) static String
getDisplayText
(javafx.scene.control.TableColumnBase<?, ?> pColumn, Object pItem) boolean
Gets the value of the property lineWrap.protected javafx.scene.control.TableColumnBase<?,
?> Gets the value of the property tableColumn.protected abstract javafx.scene.control.IndexedCell<?>
protected abstract T
protected javafx.scene.text.TextFlow
The text flow which is used to show the wrapped text in the cell.protected javafx.scene.text.Text
void
javafx.beans.property.BooleanProperty
static <V> void
setStringConverter
(javafx.scene.control.TableColumnBase<?, V> pColumn, Function<V, String> pConverter) protected void
protected void
setupWrappedText
(String pText) protected abstract javafx.beans.property.ReadOnlyObjectProperty<? extends javafx.scene.control.TableColumnBase<?,
?>> protected void
updateCellText
(String pText) protected void
void
updateItem
(I pItem, boolean pEmpty) protected void
-
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
-
TEXT_CONTAINER_STYLE_CLASS
- See Also:
-
-
Constructor Details
-
AbstractTextWrapCellSupport
-
-
Method Details
-
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
-
initTruncateFunction
public void initTruncateFunction() -
updateItem
-
updateItem
protected void updateItem() -
doUpdateItem
-
updateCellText
-
setupWrappedText
-
setupText
-
updateRowHeightIfNeeded
protected void updateRowHeightIfNeeded() -
adjustPrefHeight
protected void adjustPrefHeight() -
filterSelectBindingLogging
public static void filterSelectBindingLogging() -
setStringConverter
-
getDisplayText
-
getDisplayText
-