| Modifier and Type | Field and Description |
|---|---|
| private GridViewBehavior | |
| private ObservableSet | currentlyFixedRow
The currently fixedRow. |
| private final SetChangeListener | currentlyFixedRowListener
We listen on the currentlyFixedRow in order to do the modification in the FixedRowHeight. |
| private static final double | |
| public static final double | DEFAULT_CELL_HEIGHT
Default height of a row. |
| pack-priv final Map | deportedCells
When we add some tableCell to some topRow in order for them to be on top in term of z-order. |
| private final ListChangeListener | fixedColumnsListener
We listen on the FixedColumns in order to do the modification in the VirtualFlow. |
| pack-priv double | fixedColumnWidth
This is the current width used by the currently fixed column on the left. |
| private double | fixedRowHeight
The total height of the currently fixedRows. |
| private final ListChangeListener | fixedRowsListener
We listen on the FixedRows in order to do the modification in the VirtualFlow |
| private GridCellEditor | gridCellEditor
The editor. |
| protected final SpreadsheetHandle | |
| pack-priv BitSet | hBarValue
These variable try to optimize the layout of the rows in order not to layout every time every row. |
| protected HorizontalPicker | |
| pack-priv BooleanProperty | lastRowLayout
When we try to select cells after a setGrid, we end up with the cell selected but no visual confirmation. |
| pack-priv RectangleSelection | rectangleSelection
This rectangle will be used for drawing a border around the selection. |
| pack-priv ObservableMap | rowHeightMap
When resizing, we save the height here in order to override default row height. |
| pack-priv BitSet | |
| private InvalidationListener | |
| private final ObservableList | selectedColumns
A list of Integer with the current selected Columns. |
| private final ObservableList | selectedRows
A list of Integer with the current selected Rows. |
| protected SpreadsheetView | |
| private final InvalidationListener | vbarValueListener
When the vertical moves, we update the verticalHeader |
| protected VerticalHeader |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | computeFixedRowHeight()
We compute the total height of the fixedRows so that the selection can use it without performance regression. |
| public final boolean | containsRow(int index)
Indicate whether or not the row at the specified index is currently being displayed. |
| private TableRow | |
| protected TableHeaderRow | createTableHeaderRow()
Overrides javafx. Creates a new TableHeaderRow instance. |
| protected VirtualFlow | createVirtualFlow()
Overrides javafx. Create the virtualized container that handles the layout and scrolling of all the cells. |
| pack-priv void | |
| public GridViewBehavior | |
| public int | |
| public ObservableList | |
| protected final ObservableSet | |
| public int | getFirstRow(SpreadsheetCell cell, int index)
This return the first index displaying a cell in case of a rowSpan. |
| public double | |
| private int | |
| pack-priv GridVirtualFlow | |
| public ScrollBar | |
| public HorizontalHeader | |
| public final int | getItemCount()
Implements abstract javafx. Returns the total number of items in this container, including those that are currently hidden because they are out of view. |
| public GridRow | |
| public double | |
| public GridRow | |
| public ObservableList | |
| public ObservableList | |
| public GridCellEditor | |
| public ScrollBar | |
| protected final void | |
| private BitSet | |
| protected void | layoutChildren(double x, double y, double w, final double h)
Overrides javafx. Called during the layout pass of the scenegraph. |
| protected void | onFocusAboveCell()
Overrides javafx. Called when the focus is set on the cell above the current focused cell in order to scroll to it to make it visible. |
| protected void | onFocusBelowCell()
Overrides javafx. Called when the focus is set on the cell below the current focused cell in order to scroll to it to make it visible. |
| protected void | onSelectAboveCell()
Overrides javafx. Called when the selection is set on the the cell above the current focused cell in order to scroll to it to make it visible. |
| protected void | onSelectBelowCell()
Overrides javafx. Called when the selection is set on the cell below the current focused cell in order to scroll to it to make it visible. |
| public void | resize(TableColumnBase<?, ?> tc, int maxRows)
Used in the HorizontalColumnHeader when we need to resize in double click. |
| public void | resizeColumnToFitContent(TableColumn<ObservableList<SpreadsheetCell>, ?> tc, int maxRows)
We want to have extra space when displaying LocalDate because they will use an editor that display a little icon on the right. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | scrollHorizontally()
Overrides javafx. Scrolls to the column containing the current focused cell. |
| protected void | scrollHorizontally(TableColumn<ObservableList<SpreadsheetCell>, ?> col)
Overrides javafx. Programmatically scrolls to the given column. |
| public void | setHbarValue(double value)
If the scene is not yet instantiated, we need to wait otherwise the VirtualFlow will not shift the cells properly. |
| public void | |
| private void |
| behavior | back to summary |
|---|---|
| private GridViewBehavior behavior | |
| currentlyFixedRow | back to summary |
|---|---|
| private ObservableSet<Integer> currentlyFixedRow The currently fixedRow. This handles an Integer's set of rows being fixed. NOT Fixable but truly fixed. | |
| currentlyFixedRowListener | back to summary |
|---|---|
| private final SetChangeListener<? super Integer> currentlyFixedRowListener We listen on the currentlyFixedRow in order to do the modification in the FixedRowHeight. | |
| DATE_CELL_MIN_WIDTH | back to summary |
|---|---|
| private static final double DATE_CELL_MIN_WIDTH | |
| DEFAULT_CELL_HEIGHT | back to summary |
|---|---|
| public static final double DEFAULT_CELL_HEIGHT Default height of a row. | |
| deportedCells | back to summary |
|---|---|
| pack-priv final Map<GridRow, Set<CellView>> deportedCells When we add some tableCell to some topRow in order for them to be on top in term of z-order. We may end up with the situation where the row that put the cell is not in the ViewPort anymore. For example when a fixedRow has taken over the real row when scrolling down. Then, the tableCell added is still hanging out in the topRow. That tableCell has no clue that its "creator" has been destroyed or re-used since that tableCell was not technically belonging to its "creator". Therefore, we need to track those cells in order to remove them each time. | |
| fixedColumnsListener | back to summary |
|---|---|
| private final ListChangeListener<SpreadsheetColumn> fixedColumnsListener We listen on the FixedColumns in order to do the modification in the VirtualFlow. | |
| fixedColumnWidth | back to summary |
|---|---|
| pack-priv double fixedColumnWidth This is the current width used by the currently fixed column on the left. | |
| fixedRowHeight | back to summary |
|---|---|
| private double fixedRowHeight The total height of the currently fixedRows. | |
| fixedRowsListener | back to summary |
|---|---|
| private final ListChangeListener<Integer> fixedRowsListener We listen on the FixedRows in order to do the modification in the VirtualFlow | |
| gridCellEditor | back to summary |
|---|---|
| private GridCellEditor gridCellEditor The editor. | |
| handle | back to summary |
|---|---|
| protected final SpreadsheetHandle handle | |
| hBarValue | back to summary |
|---|---|
| pack-priv BitSet hBarValue These variable try to optimize the layout of the rows in order not to layout every time every row. So rowToLayout contains the rows that really needs layout(contain span or fixed). And hBarValue is an indicator for the VirtualFlow. When the Hbar is touched, this BitSet is set to false. And when a row is drawing, it flips its value in this BitSet. So that we know when scrolling up or down whether a row has taken into account that the HBar was moved (otherwise, blank area may appear). | |
| horizontalPickers | back to summary |
|---|---|
| protected HorizontalPicker horizontalPickers | |
| lastRowLayout | back to summary |
|---|---|
| pack-priv BooleanProperty lastRowLayout When we try to select cells after a setGrid, we end up with the cell selected but no visual confirmation. In order to prevent that, we need to warn the selectionModel when the layout is starting and then the selectionModel will do the appropriate actions in order to force the visual to come. | |
| rectangleSelection | back to summary |
|---|---|
| pack-priv RectangleSelection rectangleSelection This rectangle will be used for drawing a border around the selection. | |
| rowHeightMap | back to summary |
|---|---|
| pack-priv ObservableMap<Integer, Double> rowHeightMap When resizing, we save the height here in order to override default row height. package protected. | |
| rowToLayout | back to summary |
|---|---|
| pack-priv BitSet rowToLayout | |
| rowToLayoutListener | back to summary |
|---|---|
| private InvalidationListener rowToLayoutListener | |
| selectedColumns | back to summary |
|---|---|
| private final ObservableList<Integer> selectedColumns A list of Integer with the current selected Columns. This is useful for HorizontalHeader and VerticalHeader because they need to highlight when a selection is made. | |
| selectedRows | back to summary |
|---|---|
| private final ObservableList<Integer> selectedRows A list of Integer with the current selected Rows. This is useful for HorizontalHeader and VerticalHeader because they need to highlight when a selection is made. | |
| spreadsheetView | back to summary |
|---|---|
| protected SpreadsheetView spreadsheetView | |
| vbarValueListener | back to summary |
|---|---|
| private final InvalidationListener vbarValueListener When the vertical moves, we update the verticalHeader | |
| verticalHeader | back to summary |
|---|---|
| protected VerticalHeader verticalHeader | |
| GridViewSkin | back to summary |
|---|---|
| public GridViewSkin(final SpreadsheetHandle handle) CONSTRUCTOR * * | |
| computeFixedRowHeight | back to summary |
|---|---|
| public void computeFixedRowHeight() We compute the total height of the fixedRows so that the selection can use it without performance regression. | |
| containsRow | back to summary |
|---|---|
| public final boolean containsRow(int index) Indicate whether or not the row at the specified index is currently being displayed. | |
| createCell | back to summary |
|---|---|
| private TableRow | |
| createTableHeaderRow | back to summary |
|---|---|
| protected TableHeaderRow createTableHeaderRow() Overrides javafx. Doc from javafx. Creates a new TableHeaderRow instance. By default this method should not be overridden, but in some circumstances it makes sense (e.g. testing, or when extreme customization is desired).
| |
| createVirtualFlow | back to summary |
|---|---|
| protected VirtualFlow Overrides javafx. Doc from javafx. Create the virtualized container that handles the layout and scrolling of
all the cells. This enables skin subclasses to provide
a custom
| |
| focusScroll | back to summary |
|---|---|
| pack-priv void focusScroll() | |
| getBehavior | back to summary |
|---|---|
| public GridViewBehavior getBehavior() | |
| getCellsSize | back to summary |
|---|---|
| public int getCellsSize() | |
| getColumns | back to summary |
|---|---|
| public ObservableList | |
| getCurrentlyFixedRow | back to summary |
|---|---|
| protected final ObservableSet | |
| getFirstRow | back to summary |
|---|---|
| public int getFirstRow(SpreadsheetCell cell, int index) This return the first index displaying a cell in case of a rowSpan. If the returned index is the same as given, it means the current cell is the one showing. Otherwise, it means another cell above will be the one drawn. | |
| getFixedRowHeight | back to summary |
|---|---|
| public double getFixedRowHeight() | |
| getFixedRowSize | back to summary |
|---|---|
| private int getFixedRowSize() | |
| getFlow | back to summary |
|---|---|
| pack-priv GridVirtualFlow | |
| getHBar | back to summary |
|---|---|
| public ScrollBar getHBar() | |
| getHorizontalHeader | back to summary |
|---|---|
| public HorizontalHeader getHorizontalHeader() | |
| getItemCount | back to summary |
|---|---|
| public final int getItemCount() Implements abstract javafx. Doc from javafx. Returns the total number of items in this container, including those that are currently hidden because they are out of view.
| |
| getRow | back to summary |
|---|---|
| public GridRow getRow(int index) This return the row at the specified index in the list. The index specified HAS NOTHING to do with the index of the row.
| |
| getRowHeight | back to summary |
|---|---|
| public double getRowHeight(int row) Compute the height of a particular row. If the row is in
| |
| getRowIndexed | back to summary |
|---|---|
| public GridRow getRowIndexed(int index) This return the GridRow which has the specified index if found. Otherwise null is returned. | |
| getSelectedColumns | back to summary |
|---|---|
| public ObservableList | |
| getSelectedRows | back to summary |
|---|---|
| public ObservableList Contains the index of the sortedList. | |
| getSpreadsheetCellEditorImpl | back to summary |
|---|---|
| public GridCellEditor getSpreadsheetCellEditorImpl() | |
| getVBar | back to summary |
|---|---|
| public ScrollBar getVBar() | |
| init | back to summary |
|---|---|
| protected final void init() PRIVATE/PROTECTED METHOD * * | |
| initRowToLayoutBitSet | back to summary |
|---|---|
| private BitSet initRowToLayoutBitSet() Return a BitSet of the rows that needs layout all the time. This includes any row containing a span, or a fixed row. | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren(double x, double y, double w, final double h) Overrides javafx. Doc from javafx. Called during the layout pass of the scenegraph.
| |
| onFocusAboveCell | back to summary |
|---|---|
| protected void onFocusAboveCell() Overrides javafx. Doc from javafx. Called when the focus is set on the cell above the current focused cell in order to scroll to it to make it visible.
| |
| onFocusBelowCell | back to summary |
|---|---|
| protected void onFocusBelowCell() Overrides javafx. Doc from javafx. Called when the focus is set on the cell below the current focused cell in order to scroll to it to make it visible.
| |
| onSelectAboveCell | back to summary |
|---|---|
| protected void onSelectAboveCell() Overrides javafx. Doc from javafx. Called when the selection is set on the the cell above the current focused cell in order to scroll to it to make it visible.
| |
| onSelectBelowCell | back to summary |
|---|---|
| protected void onSelectBelowCell() Overrides javafx. Doc from javafx. Called when the selection is set on the cell below the current focused cell in order to scroll to it to make it visible.
| |
| resize | back to summary |
|---|---|
| public void resize(TableColumnBase<?, ?> tc, int maxRows) Used in the HorizontalColumnHeader when we need to resize in double click. | |
| resizeColumnToFitContent | back to summary |
|---|---|
| public void resizeColumnToFitContent(TableColumn<ObservableList<SpreadsheetCell>, ?> tc, int maxRows) We want to have extra space when displaying LocalDate because they will use an editor that display a little icon on the right. Thus, that icon is reducing the visibility of the date string. | |
| resizeRowsToDefault | back to summary |
|---|---|
| public void resizeRowsToDefault() | |
| resizeRowsToFitContent | back to summary |
|---|---|
| public void resizeRowsToFitContent() Will compute for every row the necessary height and fit the line. This can degrade performance a lot so need to use it wisely. But I don't see other solutions right now. | |
| resizeRowsToMaximum | back to summary |
|---|---|
| public void resizeRowsToMaximum() | |
| resizeRowToFitContent | back to summary |
|---|---|
| public void resizeRowToFitContent(int modelRow) Will compute for the row the necessary height and fit the line. This can degrade performance a lot so need to use it wisely. But I don't see other solutions right now. | |
| scrollHorizontally | back to summary |
|---|---|
| public void scrollHorizontally() Overrides javafx. Doc from javafx. Scrolls to the column containing the current focused cell. Handles the horizontal scrolling when the selection mode is cell-based and the newly selected cell belongs to a column which is not completely visible.
| |
| scrollHorizontally | back to summary |
|---|---|
| protected void scrollHorizontally(TableColumn<ObservableList<SpreadsheetCell>, ?> col) Overrides javafx. Doc from javafx. Programmatically scrolls to the given column. This call will ensure that the column is aligned on the left edge
of the
| |
| setHbarValue | back to summary |
|---|---|
| public void setHbarValue(double value) If the scene is not yet instantiated, we need to wait otherwise the VirtualFlow will not shift the cells properly. | |
| setHbarValue | back to summary |
|---|---|
| public void setHbarValue(double value, int count) | |
| verticalScroll | back to summary |
|---|---|
| private void verticalScroll() | |