Spec-Zone .ru
спецификации, руководства, описания, API
|
public abstract static class TableView.TableViewSelectionModel<S> extends MultipleSelectionModel<S>
SelectionModel
abstract class to
allow for special support for TableView controls.Type | Property and Description |
---|---|
BooleanProperty |
cellSelectionEnabled
A boolean property used to represent whether the TableView is in
row or cell selection modes.
|
selectionMode
selectedIndex, selectedItem
Constructor and Description |
---|
TableView.TableViewSelectionModel(TableView<S> tableView)
Builds a default TableViewSelectionModel instance with the provided
TableView.
|
Modifier and Type | Method and Description |
---|---|
BooleanProperty |
cellSelectionEnabledProperty()
A boolean property used to represent whether the TableView is in
row or cell selection modes.
|
abstract void |
clearAndSelect(int row,
TableColumn<S,?> column)
Clears all selection, and then selects the cell at the given row/column
intersection.
|
abstract void |
clearSelection(int row,
TableColumn<S,?> column)
Removes selection from the specified row/column position (in view indexes).
|
abstract ObservableList<TablePosition> |
getSelectedCells()
A read-only ObservableList representing the currently selected cells
in this TableView.
|
protected java.util.List<S> |
getTableModel()
Convenience method that returns
getTableView().getItems() . |
TableView<S> |
getTableView()
Returns the TableView instance that this selection model is installed in.
|
boolean |
isCellSelectionEnabled()
Gets the value of the property cellSelectionEnabled.
|
abstract boolean |
isSelected(int row,
TableColumn<S,?> column)
Convenience function which tests whether the given row and column index
is currently selected in this TableView instance.
|
abstract void |
select(int row,
TableColumn<S,?> 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 |
selectRightCell()
Selects the cell to the right of the currently selected cell.
|
void |
setCellSelectionEnabled(boolean value)
Sets the value of the property cellSelectionEnabled.
|
getSelectedIndices, getSelectedItems, getSelectionMode, selectAll, selectFirst, selectIndices, selectionModeProperty, selectLast, selectRange, setSelectionMode
clearAndSelect, clearSelection, clearSelection, getSelectedIndex, getSelectedItem, isEmpty, isSelected, select, select, selectedIndexProperty, selectedItemProperty, selectNext, selectPrevious, setSelectedIndex, setSelectedItem
public final BooleanProperty cellSelectionEnabledProperty
cellSelectionEnabled
to be true results in cells being
able to be selected (but not rows).public TableView.TableViewSelectionModel(TableView<S> tableView)
tableView
- The TableView upon which this selection model should
operate.java.lang.NullPointerException
- TableView can not be null.public abstract ObservableList<TablePosition> getSelectedCells()
public abstract boolean isSelected(int row, TableColumn<S,?> column)
public abstract void select(int row, TableColumn<S,?> column)
public abstract void clearAndSelect(int row, TableColumn<S,?> column)
public abstract void clearSelection(int row, TableColumn<S,?> column)
public abstract void selectLeftCell()
public abstract void selectRightCell()
public abstract void selectAboveCell()
public abstract void selectBelowCell()
public final BooleanProperty cellSelectionEnabledProperty()
cellSelectionEnabled
to be true results in cells being
able to be selected (but not rows).public final void setCellSelectionEnabled(boolean value)
cellSelectionEnabled
to be true results in cells being
able to be selected (but not rows).public final boolean isCellSelectionEnabled()
cellSelectionEnabled
to be true results in cells being
able to be selected (but not rows).public TableView<S> getTableView()
Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to