TableViewBehavior in order to modify the selection
behavior. The selection will basically work like Excel:
Selection will always be rectangles. So selection by SHIFT will produce a
rectangle extending your selection.
Pressing SHORTCUT with an arrow will on a cell will do:
- If the cell is empty, we go to the next (in the direction) non empty cell.
- If the cell is not empty, then we either go to the last non empty cell if
the next is not empty, or the first non empty cell if the next is empty.
This is meant to increase navigation on non empty cell in a Spreadsheet more
easily.
Pressing SHORTCUT and SHIFT together will behave as the ShortCut previously
explained but the selection will be extended instead of just selecting the
new cell.
| Modifier and Type | Field and Description |
|---|---|
| private GridViewSkin |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | discontinuousSelectPreviousRow()
Overrides com. Discontinuous Selection * |
| private void | |
| private int | findNextColumn(TablePositionBase<TC extends TableColumnBase<S, T>> focusedCell, SpreadsheetCell cell)
|
| private int | |
| private int | findPreviousColumn(TablePositionBase<TC extends TableColumnBase<S, T>> focusedCell, SpreadsheetCell cell)
|
| private int | findPreviousRow(TablePositionBase<TC extends TableColumnBase<S, T>> focusedCell, SpreadsheetCell cell)
|
| private void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| private void | |
| private boolean | isEmpty(SpreadsheetCell cell)
Cell is empty if there's nothing in it or if we have a NaN instead of a proper Double. |
| public void | selectCell(int rowDiff, int columnDiff)
Overrides com.
|
| pack-priv void | |
| protected void | updateCellHorizontalSelection(int delta, Runnable defaultAction)
Overrides com.
|
| protected void | updateCellVerticalSelection(int delta, Runnable defaultAction)
Overrides com.
|
| skin | back to summary |
|---|---|
| private GridViewSkin skin | |
| GridViewBehavior | back to summary |
|---|---|
| public GridViewBehavior(TableView<ObservableList<SpreadsheetCell>> control) | |
| discontinuousSelectHorizontal | back to summary |
|---|---|
| private void discontinuousSelectHorizontal(boolean previous) | |
| discontinuousSelectNextColumn | back to summary |
|---|---|
| protected void discontinuousSelectNextColumn() Overrides com.
| |
| discontinuousSelectNextRow | back to summary |
|---|---|
| protected void discontinuousSelectNextRow() Overrides com.
| |
| discontinuousSelectPreviousColumn | back to summary |
|---|---|
| protected void discontinuousSelectPreviousColumn() Overrides com.
| |
| discontinuousSelectPreviousRow | back to summary |
|---|---|
| protected void discontinuousSelectPreviousRow() Overrides com. Doc from com. Discontinuous Selection *
| |
| discontinuousSelectVertical | back to summary |
|---|---|
| private void discontinuousSelectVertical(boolean previous) | |
| findNextColumn | back to summary |
|---|---|
| private int findNextColumn(TablePositionBase<TC extends TableColumnBase<S, T>> focusedCell, SpreadsheetCell cell) | |
| findNextRow | back to summary |
|---|---|
| private int findNextRow(TablePositionBase<TC extends TableColumnBase<S, T>> focusedCell, SpreadsheetCell cell) | |
| findPreviousColumn | back to summary |
|---|---|
| private int findPreviousColumn(TablePositionBase<TC extends TableColumnBase<S, T>> focusedCell, SpreadsheetCell cell) | |
| findPreviousRow | back to summary |
|---|---|
| private int findPreviousRow(TablePositionBase<TC extends TableColumnBase<S, T>> focusedCell, SpreadsheetCell cell) | |
| focusHorizontal | back to summary |
|---|---|
| private void focusHorizontal(boolean previous) | |
| focusLeftCell | back to summary |
|---|---|
| protected void focusLeftCell() Overrides com.
| |
| focusNextRow | back to summary |
|---|---|
| protected void focusNextRow() Overrides com.
| |
| focusPreviousRow | back to summary |
|---|---|
| protected void focusPreviousRow() Overrides com.
| |
| focusRightCell | back to summary |
|---|---|
| protected void focusRightCell() Overrides com.
| |
| focusVertical | back to summary |
|---|---|
| private void focusVertical(boolean previous) | |
| isEmpty | back to summary |
|---|---|
| private boolean isEmpty(SpreadsheetCell cell) Cell is empty if there's nothing in it or if we have a NaN instead of a proper Double. | |
| selectCell | back to summary |
|---|---|
| public void selectCell(int rowDiff, int columnDiff) Overrides com.
| |
| setGridViewSkin | back to summary |
|---|---|
| pack-priv void setGridViewSkin(GridViewSkin skin) | |
| updateCellHorizontalSelection | back to summary |
|---|---|
| protected void updateCellHorizontalSelection(int delta, Runnable defaultAction) Overrides com.
| |
| updateCellVerticalSelection | back to summary |
|---|---|
| protected void updateCellVerticalSelection(int delta, Runnable defaultAction) Overrides com.
| |