| Modifier and Type | Field and Description |
|---|---|
| private SpreadsheetGridView | |
| public Pair | |
| private boolean | |
| private final EventHandler | dragDoneHandler
When the drag is over, we remove the listener and stop the timer |
| private boolean | |
| private final EventHandler | |
| private final ListChangeListener | |
| private boolean | |
| private MouseEvent | |
| private final EventHandler | |
| private TablePosition | old
******************************************************************** Public selection API * * ******************************************************************* |
| private int | |
| private int | |
| private int | |
| private TableColumn | oldTableColumn
We use these variable in order to stay on the same row/column when navigating with arrows. |
| private final EventHandler | |
| private final EventHandler | |
| private final SelectedCellsMapTemp | |
| private final ReadOnlyUnbackedObservableList | |
| private boolean | |
| private SpreadsheetView | |
| private final Timeline | timer
Make the tableView move when selection operating outside bounds |
| private final EventHandler |
| Access | Constructor and Description |
|---|---|
| public | TableViewSpanSelectionModel(SpreadsheetView spreadsheetView, SpreadsheetGridView cellsView)
Constructor |
| Modifier and Type | Method and Description |
|---|---|
| private void | addSelectedRowsAndColumns(TablePosition<?, ?> pos)
******************************************************************** Support code * * ******************************************************************* |
| public void | clearAndSelect(int row, TableColumn<ObservableList<SpreadsheetCell>, ?> column)
Implements abstract javafx. Clears all selection, and then selects the cell at the given row/column intersection. |
| public void | clearSelection(int row, TableColumn<ObservableList<SpreadsheetCell>, ?> column)
Implements abstract javafx. Removes selection from the specified row/column position (in view indexes). |
| public void | clearSelection()
Overrides javafx. Clears the selection model of all selected indices. |
| pack-priv final GridViewSkin | |
| private TablePosition | |
| private GridRow | |
| public ObservableList | getSelectedCells()
Implements abstract javafx. FIXME I don't understand why TablePosition is not parameterized in the API.. |
| private GridViewSkin | |
| private TableColumn | |
| private TablePosition | getVisibleCell(int row, TableColumn<ObservableList<SpreadsheetCell>, ?> column)
For a position, return the Visible Cell associated with It can be the top of the span cell if it's visible, or it can be the first row visible if we have scrolled |
| private void | |
| public boolean | isSelected(int row, TableColumn<ObservableList<SpreadsheetCell>, ?> column)
Implements abstract javafx. Convenience function which tests whether the given row and column index is currently selected in this table instance. |
| public List | isSelectedRange(int row, TableColumn<ObservableList<SpreadsheetCell>, ?> column, int col)
Return the tablePosition of a selected cell inside a spanned cell if any. |
| private void | |
| private void | |
| public void | select(int row, TableColumn<ObservableList<SpreadsheetCell>, ?> column)
Implements abstract javafx. Selects the cell at the given row/column intersection. |
| public void | selectAboveCell()
Implements abstract javafx. Selects the cell directly above the currently selected cell. |
| public void | selectAll()
Overrides javafx. Convenience method to select all available indices. |
| public void | selectBelowCell()
Implements abstract javafx. Selects the cell directly below the currently selected cell. |
| public void | selectLeftCell()
Implements abstract javafx. Selects the cell to the left of the currently selected cell. |
| public void | selectRange(int minRow, TableColumnBase<ObservableList<SpreadsheetCell>, ?> minColumn, int maxRow, TableColumnBase<ObservableList<SpreadsheetCell>, ?> maxColumn)
Overrides javafx. Selects the cells in the range (minRow, minColumn) to (maxRow, maxColumn), inclusive. |
| public void | selectRightCell()
Implements abstract javafx. Selects the cell to the right of the currently selected cell. |
| private void | updateScroll(TablePosition<ObservableList<SpreadsheetCell>, ?> posFinal)
We try to make visible the rows that may be hidden by Fixed rows. |
| private void | updateSelectedVisuals(GridViewSkin skin, TablePosition<S, T> pos, HashSet<Integer> selectedRows, HashSet<Integer> selectedColumns)
When all the selection has been made, we just need to light up the indicators that are showing which indexes are selected. |
| public void | verifySelectedCells(List<Pair<Integer, Integer>> selectedCells)
When we set a new grid, we need to update the selected Cells because otherwise we will end up with TablePosition which have "-1" as their column number. |
| cellsView | back to summary |
|---|---|
| private SpreadsheetGridView cellsView | |
| direction | back to summary |
|---|---|
| public Pair<Integer, Integer> direction | |
| drag | back to summary |
|---|---|
| private boolean drag | |
| dragDoneHandler | back to summary |
|---|---|
| private final EventHandler<MouseEvent> dragDoneHandler When the drag is over, we remove the listener and stop the timer | |
| key | back to summary |
|---|---|
| private boolean key | |
| keyPressedEventHandler | back to summary |
|---|---|
| private final EventHandler<KeyEvent> keyPressedEventHandler | |
| listChangeListener | back to summary |
|---|---|
| private final ListChangeListener<TablePosition<ObservableList<SpreadsheetCell>, ?>> listChangeListener | |
| makeAtomic | back to summary |
|---|---|
| private boolean makeAtomic | |
| mouseEvent | back to summary |
|---|---|
| private MouseEvent mouseEvent | |
| mousePressedEventHandler | back to summary |
|---|---|
| private final EventHandler<MouseEvent> mousePressedEventHandler | |
| old | back to summary |
|---|---|
| private TablePosition<ObservableList<SpreadsheetCell>, ?> old ******************************************************************** Public selection API * * ******************************************************************* | |
| oldColSpan | back to summary |
|---|---|
| private int oldColSpan | |
| oldRow | back to summary |
|---|---|
| private int oldRow | |
| oldRowSpan | back to summary |
|---|---|
| private int oldRowSpan | |
| oldTableColumn | back to summary |
|---|---|
| private TableColumn<S, T> oldTableColumn We use these variable in order to stay on the same row/column when navigating with arrows. If we are going down, and we are arriving on a column-spanning cell, when going down again, we don't want to go on the starting column of the spanning cell but on the same column we arrived previously. | |
| onDragDetectedEventHandler | back to summary |
|---|---|
| private final EventHandler<MouseEvent> onDragDetectedEventHandler | |
| onMouseDragEventHandler | back to summary |
|---|---|
| private final EventHandler<MouseEvent> onMouseDragEventHandler | |
| selectedCellsMap | back to summary |
|---|---|
| private final SelectedCellsMapTemp<TablePosition<ObservableList<SpreadsheetCell>, ?>> selectedCellsMap | |
| selectedCellsSeq | back to summary |
|---|---|
| private final ReadOnlyUnbackedObservableList<TablePosition<ObservableList<SpreadsheetCell>, ?>> selectedCellsSeq | |
| shift | back to summary |
|---|---|
| private boolean shift | |
| spreadsheetView | back to summary |
|---|---|
| private SpreadsheetView spreadsheetView | |
| timer | back to summary |
|---|---|
| private final Timeline timer Make the tableView move when selection operating outside bounds | |
| timerEventHandler | back to summary |
|---|---|
| private final EventHandler<ActionEvent> timerEventHandler | |
| TableViewSpanSelectionModel | back to summary |
|---|---|
| public TableViewSpanSelectionModel(SpreadsheetView spreadsheetView, SpreadsheetGridView cellsView) Constructor | |
| addSelectedRowsAndColumns | back to summary |
|---|---|
| private void addSelectedRowsAndColumns(TablePosition<?, ?> pos) ******************************************************************** Support code * * ******************************************************************* | |
| clearAndSelect | back to summary |
|---|---|
| public void clearAndSelect(int row, TableColumn<ObservableList<SpreadsheetCell>, ?> column) Implements abstract javafx. Doc from javafx. Clears all selection, and then selects the cell at the given row/column intersection.
| |
| clearSelection | back to summary |
|---|---|
| public void clearSelection(int row, TableColumn<ObservableList<SpreadsheetCell>, ?> column) Implements abstract javafx. Doc from javafx. Removes selection from the specified row/column position (in view indexes). If this particular cell (or row if the column value is -1) is not selected, nothing happens.
| |
| clearSelection | back to summary |
|---|---|
| public void clearSelection() Overrides javafx. Doc from javafx. Clears the selection model of all selected indices.
| |
| getCellsViewSkin | back to summary |
|---|---|
pack-priv final GridViewSkin getCellsViewSkin()
| |
| getFocusedCell | back to summary |
|---|---|
| private TablePosition Hides javafx.
| |
| getNonFixedRow | back to summary |
|---|---|
| private GridRow getNonFixedRow(int index) Return the | |
| getSelectedCells | back to summary |
|---|---|
| public ObservableList Implements abstract javafx. FIXME I don't understand why TablePosition is not parameterized in the API..
| |
| getSpreadsheetViewSkin | back to summary |
|---|---|
| private GridViewSkin getSpreadsheetViewSkin() | |
| getTableColumn | back to summary |
|---|---|
| private TableColumn | |
| getVisibleCell | back to summary |
|---|---|
| private TablePosition For a position, return the Visible Cell associated with It can be the top of the span cell if it's visible, or it can be the first row visible if we have scrolled | |
| handleSelectedCellsListChangeEvent | back to summary |
|---|---|
| private void handleSelectedCellsListChangeEvent(ListChangeListener. | |
| isSelected | back to summary |
|---|---|
| public boolean isSelected(int row, TableColumn<ObservableList<SpreadsheetCell>, ?> column) Implements abstract javafx. Doc from javafx. Convenience function which tests whether the given row and column index is currently selected in this table instance.
| |
| isSelectedRange | back to summary |
|---|---|
| public List Return the tablePosition of a selected cell inside a spanned cell if any. | |
| quietClearSelection | back to summary |
|---|---|
| private void quietClearSelection() Hides javafx. | |
| removeSelectedRowsAndColumns | back to summary |
|---|---|
| private void removeSelectedRowsAndColumns(TablePosition<?, ?> pos) | |
| select | back to summary |
|---|---|
| public void select(int row, TableColumn<ObservableList<SpreadsheetCell>, ?> column) Implements abstract javafx. Doc from javafx. Selects the cell at the given row/column intersection.
| |
| selectAboveCell | back to summary |
|---|---|
| public void selectAboveCell() Implements abstract javafx. Doc from javafx. Selects the cell directly above the currently selected cell.
| |
| selectAll | back to summary |
|---|---|
| public void selectAll() Overrides javafx. Doc from javafx. Convenience method to select all available indices.
| |
| selectBelowCell | back to summary |
|---|---|
| public void selectBelowCell() Implements abstract javafx. Doc from javafx. Selects the cell directly below the currently selected cell.
| |
| selectLeftCell | back to summary |
|---|---|
| public void selectLeftCell() Implements abstract javafx. Doc from javafx. Selects the cell to the left of the currently selected cell.
| |
| selectRange | back to summary |
|---|---|
| public void selectRange(int minRow, TableColumnBase<ObservableList<SpreadsheetCell>, ?> minColumn, int maxRow, TableColumnBase<ObservableList<SpreadsheetCell>, ?> maxColumn) Overrides javafx. Doc from javafx. Selects the cells in the range (minRow, minColumn) to (maxRow, maxColumn), inclusive.
| |
| selectRightCell | back to summary |
|---|---|
| public void selectRightCell() Implements abstract javafx. Doc from javafx. Selects the cell to the right of the currently selected cell.
| |
| updateScroll | back to summary |
|---|---|
| private void updateScroll(TablePosition<ObservableList<SpreadsheetCell>, ?> posFinal) We try to make visible the rows that may be hidden by Fixed rows. | |
| updateSelectedVisuals | back to summary |
|---|---|
| private void updateSelectedVisuals(GridViewSkin skin, TablePosition<S, T> pos, HashSet<Integer> selectedRows, HashSet<Integer> selectedColumns) When all the selection has been made, we just need to light up the indicators that are showing which indexes are selected. | |
| verifySelectedCells | back to summary |
|---|---|
| public void verifySelectedCells(List<Pair<Integer, Integer>> selectedCells) When we set a new grid, we need to update the selected Cells because otherwise we will end up with TablePosition which have "-1" as their column number. So we need to verify that the old selected cells are still selectable and select them. | |