static class TreeView.TreeViewBitSetSelectionModel<T> extends MultipleSelectionModelBase<TreeItem<T>>
selectionModeselectedIndex, selectedItem| Constructor and Description |
|---|
TreeView.TreeViewBitSetSelectionModel(TreeView<T> treeView)
*
Constructors *
*
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
focus(int itemIndex) |
protected int |
getFocusedIndex() |
protected int |
getItemCount()
Returns the number of items in the data model that underpins the control.
|
TreeItem<T> |
getModelItem(int index)
Returns the item at the given index.
|
void |
select(TreeItem<T> obj)
This method will attempt to select the index that contains the given
object.
|
clearAndSelect, clearSelection, clearSelection, getSelectedIndices, getSelectedItems, isEmpty, isSelected, select, selectAll, selectFirst, selectIndices, selectLast, selectNext, selectPreviousgetSelectionMode, selectionModeProperty, selectRange, setSelectionModegetSelectedIndex, getSelectedItem, selectedIndexProperty, selectedItemProperty, setSelectedIndex, setSelectedItempublic void select(TreeItem<T> obj)
This method will attempt to select the index that contains the given object. It will iterate through the underlying data model until it finds an item whose value is equal to the given object. At this point it will stop iterating - this means that this method will not select multiple indices.
select in class MultipleSelectionModelBase<TreeItem<T>>obj - The object to attempt to select in the underlying data model.protected void focus(int itemIndex)
focus in class MultipleSelectionModelBase<TreeItem<T>>protected int getFocusedIndex()
getFocusedIndex in class MultipleSelectionModelBase<TreeItem<T>>protected int getItemCount()
listView.getItems().size(). The valid range of selectable
indices is between 0 and whatever is returned by this method.getItemCount in class MultipleSelectionModelBase<TreeItem<T>>public TreeItem<T> getModelItem(int index)
listView.getItems().get(index).getModelItem in class MultipleSelectionModelBase<TreeItem<T>>index - The index of the item that is requested from the underlying
data model.Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.