| Modifier and Type | Field and Description |
|---|---|
| private StackPane | |
| private final GridViewSkin | |
| private final ChangeListener | |
| private final ArrayList | myFixedCells
Store the fixedRow in order to place them at the top when necessary. |
| private static final Comparator | ROWCMP
With that comparator we can lay out our rows in the reverse order. |
| private Scale | |
| public final List | |
| private SpreadsheetView | spreadSheetView
Private Fields * * |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private T | |
| private void | |
| private List | |
| protected List | getCells()
Overrides javafx. Returns the list of cells displayed in the current viewport. |
| pack-priv List | |
| protected ScrollBar | |
| pack-priv GridRow | |
| protected ScrollBar | |
| public void | |
| protected void | layoutChildren()
Overrides javafx. Invoked during the layout pass to layout the children in this
|
| private void | |
| protected void | |
| private void | removeDeportedCells()
When we layout, we also remove the cell that have been deported into other rows in order not to have some TableCell hanging out. |
| public double | scrollPixels(final double delta)
Overrides javafx. 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. Adjusts the cells such that the cell in the given index will be fully visible in the viewport. |
| private void |
| corner | back to summary |
|---|---|
| private StackPane corner | |
| gridViewSkin | back to summary |
|---|---|
| private final GridViewSkin gridViewSkin | |
| hBarValueChangeListener | back to summary |
|---|---|
| private final ChangeListener<Number> hBarValueChangeListener | |
| myFixedCells | back 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. | |
| ROWCMP | back to summary |
|---|---|
| private static final Comparator<GridRow> ROWCMP With that comparator we can lay out our rows in the reverse order. That
is to say from the bottom to the very top. In that manner we are sure
that our spanning cells will COVER the cell below so we don't have any
problems with missing hovering, the editor jammed etc.
| |
| scale | back to summary |
|---|---|
| private Scale scale | |
| sheetChildren | back to summary |
|---|---|
| public final List<Node> sheetChildren | |
| spreadSheetView | back to summary |
|---|---|
| private SpreadsheetView spreadSheetView Private Fields * * | |
| GridVirtualFlow | back to summary |
|---|---|
| public GridVirtualFlow(GridViewSkin gridViewSkin) Constructor * * | |
| containsRows | back to summary |
|---|---|
| private T containsRows(int i) Verify if the row has been added to myFixedCell | |
| findCorner | back to summary |
|---|---|
| private void findCorner() WARNING : This is bad but no other options right now. This will find the corner where the two scrollBars are joigning. | |
| findSheetChildren | back to summary |
|---|---|
| private List 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. | |
| getCells | back to summary |
|---|---|
| protected List Overrides javafx. Doc from javafx. 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.
| |
| getFixedCells | back to summary |
|---|---|
| pack-priv List | |
| getHorizontalBar | back to summary |
|---|---|
| protected ScrollBar getHorizontalBar() | |
| getTopRow | back to summary |
|---|---|
| pack-priv GridRow getTopRow() We need to return here the very top row in term of "z-order". Because we will add in this row the TableCell that are in fixedColumn and which needs to be drawn on top of all others. | |
| getVerticalBar | back to summary |
|---|---|
| protected ScrollBar getVerticalBar() | |
| init | back to summary |
|---|---|
| public void init(SpreadsheetView spv) Public Methods * * | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren() Overrides javafx. Doc from javafx. Invoked during the layout pass to layout the children in this
Subclasses should override this function to layout content as needed.
| |
| layoutFixedRows | back to summary |
|---|---|
| private void layoutFixedRows() Layout the fixed rows to position them correctly | |
| layoutTotal | back to summary |
|---|---|
| protected void layoutTotal() Layout all the visible rows | |
| removeDeportedCells | back to summary |
|---|---|
| private void removeDeportedCells() When we layout, we also remove the cell that have been deported into other rows in order not to have some TableCell hanging out. When scrolling with mouse wheel, we will request the layout of all rows, but only one row will be really called. Thus by wiping entirely the deportedCell, all cells in fixedColumns are gone. So we must be smarter. | |
| scrollPixels | back to summary |
|---|---|
| public double scrollPixels(final double delta) Overrides javafx. Doc from javafx. 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.
| |
| scrollTo | back to summary |
|---|---|
| public void scrollTo(int index) Overrides javafx. Doc from javafx. Adjusts the cells such that the cell in the given index will be fully visible in the viewport.
| |
| sortRows | back to summary |
|---|---|
| private void sortRows() Sort the rows so that they stay in order for layout | |