Top Fields Constructors Methods
impl.org.controlsfx.tableview2

pack-priv final Class TableView2VirtualFlow<T extends IndexedCell<?>>

extends VirtualFlow<T extends IndexedCell<?>>
Class Inheritance
Imports
javafx.beans.Observable, javafx.beans.property.DoubleProperty, .SimpleDoubleProperty, javafx.beans.value.ChangeListener, .ObservableValue, javafx.scene.Group, .Node, javafx.scene.control.IndexedCell, .ScrollBar, .TableCell, javafx.scene.control.skin.VirtualFlow, javafx.scene.layout.Region, org.controlsfx.control.tableview2.TableView2, java.util.ArrayList, .Collections, .List, .Map.Entry, .Set

Field Summary

Modifier and TypeField and Description
private final DoubleProperty
private boolean
private final ChangeListener<Number>
private final ArrayList<T>
myFixedCells

Store the fixedRow in order to place them at the top when necessary.

public final List<Node>
private final TableView2Skin<?>
private final TableView2<?>
tableView

Private Fields * *

Constructor Summary

AccessConstructor and Description
public
TableView2VirtualFlow(TableView2Skin<?> skin)

Constructor * *

Method Summary

Modifier and TypeMethod and Description
pack-priv DoubleProperty
private T
containsRows(int i)

Verify if the row has been added to myFixedCell

private List<Node>
findSheetChildren()

WARNING : This is bad but no other options right now.

protected List<T>
getCells()

Overrides javafx.scene.control.skin.VirtualFlow.getCells.

Returns the list of cells displayed in the current viewport.

pack-priv List<T>
protected ScrollBar
protected ScrollBar
public void
init()

Public Methods * *

protected void
layoutChildren()

Overrides javafx.scene.control.skin.VirtualFlow.layoutChildren.

Invoked during the layout pass to layout the children in this Parent.

private void
layoutFixedRows()

Layout the fixed rows to position them correctly

protected void
layoutTotal()

Layout all the visible rows

pack-priv void
private <S> void
public double
scrollPixels(final double delta)

Overrides javafx.scene.control.skin.VirtualFlow.scrollPixels.

Given a delta value representing a number of pixels, this method attempts to move the VirtualFlow in the given direction (positive is down/right, negative is up/left) the given number of pixels.

public void
scrollTo(int index)

Overrides javafx.scene.control.skin.VirtualFlow.scrollTo, javafx.scene.control.skin.VirtualFlow.scrollTo.

Adjusts the cells such that the cell in the given index will be fully visible in the viewport.

private void
sortRows()

Sort the rows so that they stay in order for layout

Inherited from javafx.scene.control.skin.VirtualFlow:
addAllToPilecellCountPropertycellFactoryPropertycomputePrefHeightcomputePrefWidthfixedCellSizePropertygetAvailableCellgetCellgetCellCountgetCellFactorygetCellIndexgetFirstVisibleCellgetFirstVisibleCellWithinViewportgetFixedCellSizegetHbargetLastVisibleCellgetLastVisibleCellWithinViewportgetPositiongetPrivateCellgetVbargetViewportLengthgetVisibleCellisPannableisVerticalpannablePropertypositionPropertyrebuildCellsreconfigureCellsrecreateCellsrequestCellLayoutrequestLayoutresizeCellscrollToBottomscrollToTopscrollToTopsetCellCountsetCellFactorysetCellIndexsetFixedCellSizesetHeightsetPannablesetPositionsetVerticalsetWidthverticalProperty

Field Detail

adjustedPixelsback to summary
private final DoubleProperty adjustedPixels
adjustingback to summary
private boolean adjusting
hBarValueChangeListenerback to summary
private final ChangeListener<Number> hBarValueChangeListener
myFixedCellsback to summary
private final ArrayList<T> myFixedCells

Store the fixedRow in order to place them at the top when necessary. That is to say, when the VirtualFlow has not already placed one.

sheetChildrenback to summary
public final List<Node> sheetChildren

Hides javafx.scene.control.skin.VirtualFlow.sheetChildren.

skinback to summary
private final TableView2Skin<?> skin
tableViewback to summary
private final TableView2<?> tableView

Private Fields * *

Constructor Detail

TableView2VirtualFlowback to summary
public TableView2VirtualFlow(TableView2Skin<?> skin)

Constructor * *

Method Detail

adjustedPixelsPropertyback to summary
pack-priv DoubleProperty adjustedPixelsProperty()
containsRowsback to summary
private T containsRows(int i)

Verify if the row has been added to myFixedCell

findSheetChildrenback to summary
private List<Node> findSheetChildren()

WARNING : This is bad but no other options right now. This will find the sheetChildren of the VirtualFlow, aka where the cells are kept and clipped. See layoutFixedRows() or getTopRow() for use.

getCellsback to summary
protected List<T> getCells()

Overrides javafx.scene.control.skin.VirtualFlow.getCells.

Doc from javafx.scene.control.skin.VirtualFlow.getCells.

Returns the list of cells displayed in the current viewport.

The cells are ordered such that the first cell in this list is the first in the view, and the last cell is the last in the view. When pixel scrolling, the list is simply shifted and items drop off the beginning or the end, depending on the order of scrolling.

Annotations
@Override
getFixedCellsback to summary
pack-priv List<T> getFixedCells()
getHorizontalBarback to summary
protected ScrollBar getHorizontalBar()
getVerticalBarback to summary
protected ScrollBar getVerticalBar()
initback to summary
public void init()

Public Methods * *

layoutChildrenback to summary
protected void layoutChildren()

Overrides javafx.scene.control.skin.VirtualFlow.layoutChildren.

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

Invoked during the layout pass to layout the children in this Parent. By default it will only set the size of managed, resizable content to their preferred sizes and does not do any node positioning.

Subclasses should override this function to layout content as needed.

Annotations
@Override
layoutFixedRowsback to summary
private void layoutFixedRows()

Layout the fixed rows to position them correctly

layoutTotalback to summary
protected void layoutTotal()

Layout all the visible rows

rebuildFixedCellsback to summary
pack-priv void rebuildFixedCells()
removeDeportedCellsback to summary
private <S> void removeDeportedCells()
scrollPixelsback to summary
public double scrollPixels(final double delta)

Overrides javafx.scene.control.skin.VirtualFlow.scrollPixels.

Doc from javafx.scene.control.skin.VirtualFlow.scrollPixels.

Given a delta value representing a number of pixels, this method attempts to move the VirtualFlow in the given direction (positive is down/right, negative is up/left) the given number of pixels. It returns the number of pixels actually moved.

Annotations
@Override
scrollToback to summary
public void scrollTo(int index)

Overrides javafx.scene.control.skin.VirtualFlow.scrollTo, javafx.scene.control.skin.VirtualFlow.scrollTo.

Doc from javafx.scene.control.skin.VirtualFlow.scrollTo.

Adjusts the cells such that the cell in the given index will be fully visible in the viewport.

Annotations
@Override
sortRowsback to summary
private void sortRows()

Sort the rows so that they stay in order for layout