Top Description Fields Constructors Methods
javafx.scene.control.skin

public abstract Class TableCellSkinBase<S, T, C extends IndexedCell<T>>

extends CellSkinBase<C extends IndexedCell<T>>
Class Inheritance
Known Direct Subclasses
javafx.scene.control.skin.TreeTableCellSkin, javafx.scene.control.skin.TableCellSkin
Type Parameters
<S>
the type of the UI control (e.g. the type of the 'row')
<T>
the type of the content in the cell, based on its TableColumnBase
<C>
the type of the Cell control
Imports
com.sun.javafx.scene.control.Properties, javafx.beans.InvalidationListener, .WeakInvalidationListener, javafx.beans.property.ReadOnlyObjectProperty, javafx.scene.control.Control, .IndexedCell, .TableColumnBase, javafx.scene.shape.Rectangle

Base skin for table cell controls, for example: javafx.scene.control.TableCell and javafx.scene.control.TreeTableCell.
Since
9
See Also
javafx.scene.control.TableCell, javafx.scene.control.TreeTableCell

Field Summary

Modifier and TypeField and Description
private InvalidationListener
pack-priv boolean
private WeakInvalidationListener
Inherited from javafx.scene.control.skin.CellSkinBase:
DEFAULT_CELL_SIZE

Constructor Summary

AccessConstructor and Description
public
TableCellSkinBase(final C
The control that this skin should be installed onto.
control
)

Creates a new TableCellSkinBase instance, installing the necessary child nodes into the Control children list, as well as the necessary input mappings for handling key, mouse, etc events.

Method Summary

Modifier and TypeMethod and Description
protected double
computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.skin.LabeledSkinBase.computePrefWidth.

Calculates the preferred width of this SkinBase.

public void
dispose()

Overrides javafx.scene.control.skin.LabeledSkinBase.dispose.

Implements javafx.scene.control.Skin.dispose.

Called when a previously installed skin is about to be removed from its associated control.

public final TableColumnBase<S, T>
protected void
layoutChildren(final double x, final double y, final double w, final double h)

Overrides javafx.scene.control.skin.LabeledSkinBase.layoutChildren.

The Layout algorithm works like this: - Get the labeled w/h, graphic w/h, text w/h - Compute content w/h based on graphicVPos, graphicHPos, graphicTextGap, and graphic w/h and text w/h - (Note that the text content has been pre-truncated where necessary) - compute content x/y based on content w/h and labeled w/h and the labeled's hpos and vpos - position the graphic and text

public abstract ReadOnlyObjectProperty<? extends TableColumnBase<S, T>>

Returns:

the TableColumnBase instance that is responsible for this Cell
tableColumnProperty
()

The TableColumnBase instance that is responsible for this Cell.

Inherited from javafx.scene.control.skin.CellSkinBase:
cellSizePropertygetCellSizegetClassCssMetaDatagetCssMetaData

Field Detail

columnWidthListenerback to summary
private InvalidationListener columnWidthListener
isDeferToParentForPrefWidthback to summary
pack-priv boolean isDeferToParentForPrefWidth
weakColumnWidthListenerback to summary
private WeakInvalidationListener weakColumnWidthListener

Constructor Detail

TableCellSkinBaseback to summary
public TableCellSkinBase(final C control)

Creates a new TableCellSkinBase instance, installing the necessary child nodes into the Control children list, as well as the necessary input mappings for handling key, mouse, etc events.

Parameters
control:C

The control that this skin should be installed onto.

Method Detail

computePrefWidthback to summary
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.skin.LabeledSkinBase.computePrefWidth.

Doc from javafx.scene.control.skin.LabeledSkinBase.computePrefWidth.

Calculates the preferred width of this SkinBase. The default implementation calculates this width as the width of the area occupied by its managed children when they are positioned at their current positions at their preferred widths.

Annotations
@Override
disposeback to summary
public void dispose()

Overrides javafx.scene.control.skin.LabeledSkinBase.dispose.

Implements javafx.scene.control.Skin.dispose.

Doc from javafx.scene.control.SkinBase.dispose.

Called when a previously installed skin is about to be removed from its associated control. This allows the skin to do clean up, like removing listeners and bindings, and undo any changes to the control's properties. After this method completes, getSkinnable() and getNode() should return null.

Calling dispose() more than once has no effect.

Annotations
@Override
getTableColumnback to summary
public final TableColumnBase<S, T> getTableColumn()
layoutChildrenback to summary
protected void layoutChildren(final double x, final double y, final double w, final double h)

Overrides javafx.scene.control.skin.LabeledSkinBase.layoutChildren.

Doc from javafx.scene.control.skin.LabeledSkinBase.layoutChildren.

The Layout algorithm works like this: - Get the labeled w/h, graphic w/h, text w/h - Compute content w/h based on graphicVPos, graphicHPos, graphicTextGap, and graphic w/h and text w/h - (Note that the text content has been pre-truncated where necessary) - compute content x/y based on content w/h and labeled w/h and the labeled's hpos and vpos - position the graphic and text

Annotations
@Override
tableColumnPropertyback to summary
public abstract ReadOnlyObjectProperty<? extends TableColumnBase<S, T>> tableColumnProperty()

The TableColumnBase instance that is responsible for this Cell.

Returns:ReadOnlyObjectProperty<? extends TableColumnBase<S, T>>

the TableColumnBase instance that is responsible for this Cell