T
- The type of the underlying data model for the UI control.public abstract class TableSelectionModel<T> extends MultipleSelectionModelBase<T>
TableView
and TreeTableView
.Type | Property and Description |
---|---|
BooleanProperty |
cellSelectionEnabled
A boolean property used to represent whether the table is in
row or cell selection modes.
|
selectionModeProperty
selectedIndexProperty, selectedItemProperty
MultipleSelectionModelBase.SelectedIndicesList, 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, selectedItemChange
Constructor and Description |
---|
TableSelectionModel() |
Modifier and Type | Method and Description |
---|---|
BooleanProperty |
cellSelectionEnabledProperty()
A boolean property used to represent whether the table is in
row or cell selection modes.
|
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()
Gets the value of the property cellSelectionEnabled.
|
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)
Sets the value of the property cellSelectionEnabled.
|
clearAndSelect, clearSelection, clearSelection, focus, getFocusedIndex, getItemCount, getModelItem, getSelectedIndices, getSelectedItems, isAtomic, isEmpty, isSelected, select, select, selectAll, selectFirst, selectIndices, selectLast, selectNext, selectPrevious, shiftSelection, shiftSelection, startAtomic, stopAtomic
getSelectionMode, selectionModeProperty, selectRange, setSelectionMode
getSelectedIndex, getSelectedItem, selectedIndexProperty, selectedItemProperty, setSelectedIndex, setSelectedItem
public final BooleanProperty cellSelectionEnabledProperty
cellSelectionEnabled
to be true results in cells being
able to be selected (but not rows).private 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)
row
- the rowcolumn
- the columnpublic abstract void select(int row, TableColumnBase<T,?> column)
row
- the rowcolumn
- the columnpublic abstract void clearAndSelect(int row, TableColumnBase<T,?> column)
row
- the rowcolumn
- the columnpublic abstract void clearSelection(int row, TableColumnBase<T,?> column)
row
- the rowcolumn
- the columnpublic 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)
minRow
- the minRowminColumn
- the minColumnmaxRow
- the maxRowmaxColumn
- the maxColumnpublic final BooleanProperty cellSelectionEnabledProperty()
cellSelectionEnabled
to be true results in cells being
able to be selected (but not rows).public final void setCellSelectionEnabled(boolean value)
public final boolean isCellSelectionEnabled()