SpreadsheetView.
Due to the complexity induced by cell's span, it is not possible to give a
full access to selectionModel like in the TableView.
| Modifier and Type | Field and Description |
|---|---|
| private final TableViewSpanSelectionModel | |
| private final SpreadsheetView |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final void | clearAndSelect(int
the row index to select row, SpreadsheetColumn the column to select column)Clears all selection, and then selects the cell at the given row/column
intersection in the |
| public final void | clearAndSelect(SpreadsheetCell
the cell to select cell)Clears all selection, and then selects the given |
| public void | clearAndSelectLeftCell()
Clears the current selection and select the cell on the left of the current focused cell. |
| public void | clearAndSelectRightCell()
Clears the current selection and select the cell on the right of the current focused cell. |
| private void | clearAndSelectView(int row, SpreadsheetColumn column)
Private method for inner selection when we already have the ViewRow. |
| public final void | |
| public final void | focus(int
the row index of the item to give focus to row, SpreadsheetColumn the column of the item to give focus to. Can be null column)Causes the cell at the given index to receive the focus. |
| public final TablePosition | Returns: the position of the cell that has current focusReturns the position of the cell that has current focus. |
| public final ObservableList | Returns: a read-only ObservableListReturns a read-only |
| public SelectionMode | Returns: theSelectionMode currently usedReturns the |
| public final void | select(int
the row index to select row, SpreadsheetColumn the column to select column)Selects the cell at the given row/column intersection. |
| public final void | |
| public void | selectCells(List<Pair<Integer, Integer>>
the cells to select selectedCells)Selects discontinuous cells. |
| public void | |
| public void | selectRange(int
the minimum row in the range minRow, SpreadsheetColumn the minimum column in the range minColumn, int the maximum row in the range maxRow, SpreadsheetColumn the maximum column in the range maxColumn)Selects the cells in the range (minRow, minColumn) to (maxRow, maxColumn), inclusive. |
| public final void | setSelectionMode(SelectionMode
the value)SelectionMode to useSpecifies the selection mode to use in this selection model. |
| selectionModel | back to summary |
|---|---|
| private final TableViewSpanSelectionModel selectionModel | |
| spv | back to summary |
|---|---|
| private final SpreadsheetView spv | |
| SpreadsheetViewSelectionModel | back to summary |
|---|---|
| pack-priv SpreadsheetViewSelectionModel(SpreadsheetView spv, TableViewSpanSelectionModel selectionModel) | |
| clearAndSelect | back to summary |
|---|---|
| public final void clearAndSelect(int row, SpreadsheetColumn column) Clears all selection, and then selects the cell at the given row/column
intersection in the
| |
| clearAndSelect | back to summary |
|---|---|
| public final void clearAndSelect(SpreadsheetCell cell) Clears all selection, and then selects the given
| |
| clearAndSelectLeftCell | back to summary |
|---|---|
| public void clearAndSelectLeftCell() Clears the current selection and select the cell on the left of the current focused cell. If the cell is the first one on a row, the last cell of the preceding row is selected. | |
| clearAndSelectRightCell | back to summary |
|---|---|
| public void clearAndSelectRightCell() Clears the current selection and select the cell on the right of the current focused cell. If the cell is the last one on a row, the first cell of the next row is selected. | |
| clearAndSelectView | back to summary |
|---|---|
| private void clearAndSelectView(int row, SpreadsheetColumn column) Private method for inner selection when we already have the ViewRow. | |
| clearSelection | back to summary |
|---|---|
| public final void clearSelection() Clears the selection model of all selected indices. | |
| focus | back to summary |
|---|---|
| public final void focus(int row, SpreadsheetColumn column) Causes the cell at the given index to receive the focus.
| |
| getFocusedCell | back to summary |
|---|---|
| public final TablePosition Returns the position of the cell that has current focus.
| |
| getSelectedCells | back to summary |
|---|---|
| public final ObservableList Returns a read-only
| |
| getSelectionMode | back to summary |
|---|---|
| public SelectionMode getSelectionMode() Returns the
| |
| select | back to summary |
|---|---|
| public final void select(int row, SpreadsheetColumn column) Selects the cell at the given row/column intersection.
| |
| selectAll | back to summary |
|---|---|
| public final void selectAll() Selects all the possible cells. | |
| selectCells | back to summary |
|---|---|
| public void selectCells(List<Pair<Integer, Integer>> selectedCells) Selects discontinuous cells.
The | |
| selectCells | back to summary |
|---|---|
| public void selectCells(Pair<Integer, Integer>... selectedCells) Selects discontinuous cells.
The | |
| selectRange | back to summary |
|---|---|
| public void selectRange(int minRow, SpreadsheetColumn minColumn, int maxRow, SpreadsheetColumn maxColumn) Selects the cells in the range (minRow, minColumn) to (maxRow, maxColumn), inclusive.
| |
| setSelectionMode | back to summary |
|---|---|
| public final void setSelectionMode(SelectionMode value) Specifies the selection mode to use in this selection model. The
selection mode specifies how many items in the underlying data model can
be selected at any one time. By default, the selection mode is
| |