T - The type of the underlying data model for the UI control.public abstract class TableSelectionModel<T> extends MultipleSelectionModelBase<T>
TableView and TreeTableView.MultipleSelectionModelBase.BitSetReadOnlyUnbackedObservableList, MultipleSelectionModelBase.ShiftParams| Modifier and Type | Field and Description |
|---|---|
private BooleanProperty |
cellSelectionEnabled
A boolean property used to represent whether the table is in
row or cell selection modes.
|
selectedIndices, selectedIndicesSeq, selectedItemChange| Constructor and Description |
|---|
TableSelectionModel() |
| Modifier and Type | Method and Description |
|---|---|
BooleanProperty |
cellSelectionEnabledProperty() |
abstract void |
clearAndSelect(int row,
TableColumnBase<T,?> column)
Clears all selection, and then selects the cell at the given row/column
intersection.
|
abstract void |
clearSelection(int row,
TableColumnBase<T,?> column)
Removes selection from the specified row/column position (in view indexes).
|
boolean |
isCellSelectionEnabled() |
abstract boolean |
isSelected(int row,
TableColumnBase<T,?> column)
Convenience function which tests whether the given row and column index
is currently selected in this table instance.
|
abstract void |
select(int row,
TableColumnBase<T,?> column)
Selects the cell at the given row/column intersection.
|
abstract void |
selectAboveCell()
Selects the cell directly above the currently selected cell.
|
abstract void |
selectBelowCell()
Selects the cell directly below the currently selected cell.
|
abstract void |
selectLeftCell()
Selects the cell to the left of the currently selected cell.
|
abstract void |
selectRange(int minRow,
TableColumnBase<T,?> minColumn,
int maxRow,
TableColumnBase<T,?> maxColumn)
Selects the cells in the range (minRow, minColumn) to (maxRow, maxColumn),
inclusive.
|
abstract void |
selectRightCell()
Selects the cell to the right of the currently selected cell.
|
void |
setCellSelectionEnabled(boolean value) |
clearAndSelect, clearSelection, clearSelection, createRangeChange, focus, getFocusedIndex, getItemCount, getModelItem, getSelectedIndices, getSelectedItems, isAtomic, isEmpty, isSelected, select, select, selectAll, selectFirst, selectIndices, selectLast, selectNext, selectPrevious, shiftSelection, startAtomic, stopAtomicgetSelectionMode, selectionModeProperty, selectRange, setSelectionModegetSelectedIndex, getSelectedItem, selectedIndexProperty, selectedItemProperty, setSelectedIndex, setSelectedItemprivate BooleanProperty cellSelectionEnabled
cellSelectionEnabled to be true results in cells being
able to be selected (but not rows).public abstract boolean isSelected(int row,
TableColumnBase<T,?> column)
public abstract void select(int row,
TableColumnBase<T,?> column)
public abstract void clearAndSelect(int row,
TableColumnBase<T,?> column)
public abstract void clearSelection(int row,
TableColumnBase<T,?> column)
public abstract void selectLeftCell()
public abstract void selectRightCell()
public abstract void selectAboveCell()
public abstract void selectBelowCell()
public abstract void selectRange(int minRow,
TableColumnBase<T,?> minColumn,
int maxRow,
TableColumnBase<T,?> maxColumn)
public final BooleanProperty cellSelectionEnabledProperty()
public final void setCellSelectionEnabled(boolean value)
public final boolean isCellSelectionEnabled()