Top Description Fields Constructors Methods
impl.org.controlsfx.tableview2

public Class TableRow2<S>

extends TableRow<S>
Class Inheritance
Type Parameters
<S>
The type of the objects contained within the TableView2 items list.
Imports
javafx.application.Platform, javafx.beans.InvalidationListener, .Observable, .WeakInvalidationListener, javafx.beans.property.DoubleProperty, .SimpleDoubleProperty, javafx.collections.MapChangeListener, javafx.event.Event, .EventHandler, .WeakEventHandler, javafx.scene.control.Skin, .TableCell, .TableRow, javafx.scene.input.MouseEvent, org.controlsfx.control.tableview2.TableView2

The tableRow which will holds the TableView2 cells.

Field Summary

Modifier and TypeField and Description
private final EventHandler<MouseEvent>
pack-priv TableView2<S>
parentTableView

Constructor * *

private final InvalidationListener
private final TableView2Skin<S>
private final TableView2<S>
pack-priv DoubleProperty
verticalShift

When the row is fixed, it may have a shift from its original position which we need in order to layout the cells properly and also for the rectangle selection.

private final WeakEventHandler<MouseEvent>
private final WeakInvalidationListener

Constructor Summary

AccessConstructor and Description
public
TableRow2(TableView2<S> tableView)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
addCell(TableCell<S, ?> cell)

Protected Methods * *

protected double
computeMinHeight(double width)

Overrides javafx.scene.control.Control.computeMinHeight.

Computes the minimum allowable height of the Control, based on the provided width.

protected double
computePrefHeight(double width)

Overrides javafx.scene.control.Control.computePrefHeight.

Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy.

protected Skin<?>
createDefaultSkin()

Overrides javafx.scene.control.TableRow.createDefaultSkin.

Create a new instance of the default skin for this control.

pack-priv void
private void
runOnFXThread(final Runnable runnable)

public void
setRowHeight(double height)

Inherited from javafx.scene.control.TableRow:
getTableViewqueryAccessibleAttributetableViewPropertyupdateTableView

Field Detail

dragDetectedEventHandlerback to summary
private final EventHandler<MouseEvent> dragDetectedEventHandler
parentTableViewback to summary
pack-priv TableView2<S> parentTableView

Constructor * *

setPrefHeightListenerback to summary
private final InvalidationListener setPrefHeightListener
skinback to summary
private final TableView2Skin<S> skin

Hides javafx.scene.control.Control.skin.

tableViewback to summary
private final TableView2<S> tableView

Hides javafx.scene.control.TableRow.tableView.

Private Fields * *

verticalShiftback to summary
pack-priv DoubleProperty verticalShift

When the row is fixed, it may have a shift from its original position which we need in order to layout the cells properly and also for the rectangle selection.

weakDragHandlerback to summary
private final WeakEventHandler<MouseEvent> weakDragHandler
weakPrefHeightListenerback to summary
private final WeakInvalidationListener weakPrefHeightListener

Constructor Detail

TableRow2back to summary
public TableRow2(TableView2<S> tableView)
Parameters
tableView:TableView2<S>

the TableView2

Method Detail

addCellback to summary
pack-priv void addCell(TableCell<S, ?> cell)

Protected Methods * *

computeMinHeightback to summary
protected double computeMinHeight(double width)

Overrides javafx.scene.control.Control.computeMinHeight.

Doc from javafx.scene.control.Control.computeMinHeight.

Computes the minimum allowable height of the Control, based on the provided width. The minimum height is not calculated within the Control, instead the calculation is delegated to the Node#minHeight(double) method of the Skin. If the Skin is null, the returned value is 0.

Annotations
@Override
computePrefHeightback to summary
protected double computePrefHeight(double width)

Overrides javafx.scene.control.Control.computePrefHeight.

Doc from javafx.scene.control.Control.computePrefHeight.

Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.

Annotations
@Override
createDefaultSkinback to summary
protected Skin<?> createDefaultSkin()

Overrides javafx.scene.control.TableRow.createDefaultSkin.

Doc from javafx.scene.control.TableRow.createDefaultSkin.

Create a new instance of the default skin for this control. This is called to create a skin for the control if no skin is provided via CSS -fx-skin or set explicitly in a sub-class with setSkin(...).

Annotations
@Override
removeCellback to summary
pack-priv void removeCell(TableCell<S, ?> gc)
runOnFXThreadback to summary
private void runOnFXThread(final Runnable runnable)
setRowHeightback to summary
public void setRowHeight(double height)