APIdia Launch Partner
Top Description Fields Constructors Methods
javafx.scene.control.skin

public Class TableRowSkin<T>

extends TableRowSkinBase<T, TableRow<T>, TableCell<T, ?>>
Class Inheritance
Type Parameters
<T>
the type of the item contained within the row
Imports
java.util.ArrayList, .List, com.sun.javafx.scene.control.behavior.BehaviorBase, .TableRowBehavior, javafx.collections.FXCollections, .ObservableList, javafx.scene.AccessibleAttribute, .Node, javafx.scene.control.Control, .TableCell, .TableColumn, .TableColumnBase, .TablePosition, .TableRow, .TableView, .TableView.TableViewFocusModel

Default skin implementation for the TableRow control.
Since
9
See Also
TableRow

Field Summary

Modifier and TypeField and Description
private final BehaviorBase<TableRow<T>>
Inherited from javafx.scene.control.skin.TableRowSkinBase:
cellscellsMapisDirtymaxDisclosureWidthMap

Constructor Summary

AccessConstructor and Description
public
TableRowSkin(TableRow<T>
The control that this skin should be installed onto.
control
)

Creates a new TableRowSkin 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 TableCell<T, ?>
createCell(TableColumnBase<S, T> tcb)

Implements abstract javafx.scene.control.skin.TableRowSkinBase.createCell.

Creates a new cell instance that is suitable for representing the given table column instance.

public void
dispose()

Overrides javafx.scene.control.skin.TableRowSkinBase.dispose.

Implements javafx.scene.control.Skin.dispose.

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

pack-priv double
protected TableColumn<T, ?>
getTableColumn(TableCell<T, ?> cell)

Implements abstract javafx.scene.control.skin.TableRowSkinBase.getTableColumn.

Returns the TableColumnBase instance for the given cell instance.

private TableView<T>
pack-priv TableViewSkin<T>
protected ObservableList<TableColumn<T, ?>>
getVisibleLeafColumns()

Implements abstract javafx.scene.control.skin.TableRowSkinBase.getVisibleLeafColumns.

Returns an unmodifiable list containing the currently visible leaf columns.

protected Object
queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters)

Overrides javafx.scene.control.skin.LabeledSkinBase.queryAccessibleAttribute.

This method is called by the assistive technology to request the value for an attribute.

private void
requestLayoutWhenFixedCellSizeSet()

When we have a fixed cell size set, we must request layout when the width of the virtual flow changed, because we might need to add or remove cells that are now visible or not anymore.

private void
protected void
updateCell(TableCell<T, ?> cell, TableRow<T> row)

Implements abstract javafx.scene.control.skin.TableRowSkinBase.updateCell.

A method to allow the given cell to be told that it is a member of the given row.

Inherited from javafx.scene.control.skin.TableRowSkinBase:
checkStatecomputeMaxHeightcomputeMinHeightcomputePrefHeightcomputePrefWidthgetDisclosureNodegetIndentationLevelgetIndentationPerLevelgetTreeColumngetVirtualFlowgraphicPropertyisDirtyisDisclosureNodeVisibleisIndentationRequiredisShowRootlayoutChildrensetDirtyupdateCellsupdateLeafColumns

Field Detail

behaviorback to summary
private final BehaviorBase<TableRow<T>> behavior

Constructor Detail

TableRowSkinback to summary
public TableRowSkin(TableRow<T> control)

Creates a new TableRowSkin 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:TableRow<T>

The control that this skin should be installed onto.

Method Detail

createCellback to summary
protected TableCell<T, ?> createCell(TableColumnBase<S, T> tcb)

Implements abstract javafx.scene.control.skin.TableRowSkinBase.createCell.

Doc from javafx.scene.control.skin.TableRowSkinBase.createCell.

Creates a new cell instance that is suitable for representing the given table column instance.

Annotations
@Override
disposeback to summary
public void dispose()

Overrides javafx.scene.control.skin.TableRowSkinBase.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
getFixedCellSizeback to summary
pack-priv double getFixedCellSize()

Overrides javafx.scene.control.skin.TableRowSkinBase.getFixedCellSize.

Annotations
@Override
getTableColumnback to summary
protected TableColumn<T, ?> getTableColumn(TableCell<T, ?> cell)

Implements abstract javafx.scene.control.skin.TableRowSkinBase.getTableColumn.

Doc from javafx.scene.control.skin.TableRowSkinBase.getTableColumn.

Returns the TableColumnBase instance for the given cell instance.

Annotations
@Override
getTableViewback to summary
private TableView<T> getTableView()
getTableViewSkinback to summary
pack-priv TableViewSkin<T> getTableViewSkin()
getVisibleLeafColumnsback to summary
protected ObservableList<TableColumn<T, ?>> getVisibleLeafColumns()

Implements abstract javafx.scene.control.skin.TableRowSkinBase.getVisibleLeafColumns.

Doc from javafx.scene.control.skin.TableRowSkinBase.getVisibleLeafColumns.

Returns an unmodifiable list containing the currently visible leaf columns.

Annotations
@Override
queryAccessibleAttributeback to summary
protected Object queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters)

Overrides javafx.scene.control.skin.LabeledSkinBase.queryAccessibleAttribute.

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

This method is called by the assistive technology to request the value for an attribute.

This method is commonly overridden by subclasses to implement attributes that are required for a specific role.
If a particular attribute is not handled, the superclass implementation must be called.

Annotations
@Override
requestLayoutWhenFixedCellSizeSetback to summary
private void requestLayoutWhenFixedCellSizeSet()

When we have a fixed cell size set, we must request layout when the width of the virtual flow changed, because we might need to add or remove cells that are now visible or not anymore.
See also: JDK-8144500 and JDK-8185887.

setupTableViewListenersback to summary
private void setupTableViewListeners()
updateCellback to summary
protected void updateCell(TableCell<T, ?> cell, TableRow<T> row)

Implements abstract javafx.scene.control.skin.TableRowSkinBase.updateCell.

Doc from javafx.scene.control.skin.TableRowSkinBase.updateCell.

A method to allow the given cell to be told that it is a member of the given row. How this is implemented is dependent on the actual cell implementation.

Annotations
@Override