com.sun.javafx.scene.control
public abstract Class SelectedCellsMap<T extends TablePositionBase<TC extends TableColumnBase<S, T>>>
extends Object
- Class Inheritance
-
- Imports
- javafx.collections.FXCollections, .ListChangeListener, .ObservableList, javafx.collections.transformation.SortedList, javafx.scene.control.TablePositionBase, java.util.*
Implementation code used by the TableSelectionModel implementations. In short
this code exists to speed up some common use cases which were incredibly
slow in the old approach. The old approach essentially required a lot of
iterating through the selectedCells list. The new approach is to keep this
list for what it is good for (representing selection order primarily), and
introduce a Map to speed up the slow parts - namely looking
up whether a given row/column intersection is selected or not.
Note that a map that contains an empty bitset is used to represent that the
row is selected.
Refer to JDK-8123472 for more information on this issue.
Constructor Summary
| Access | Constructor and Description
|
|---|
| public |
|
Method Detail
| isCellSelectionEnabled | back to summary
|
|---|
| public abstract boolean isCellSelectionEnabled()
|
| isSelected | back to summary
|
|---|
| public boolean isSelected(int row, int columnIndex)
|