Spec-Zone .ru
спецификации, руководства, описания, API
|
T
- static class TreeView.TreeViewFocusModel<T> extends FocusModel<TreeItem<T>>
focusedIndex, focusedItem
Constructor and Description |
---|
TreeView.TreeViewFocusModel(TreeView<T> treeView) |
Modifier and Type | Method and Description |
---|---|
protected int |
getItemCount()
Returns the number of items in the data model that underpins the control.
|
protected TreeItem<T> |
getModelItem(int index)
Returns the item at the given index.
|
focus, focusedIndexProperty, focusedItemProperty, focusNext, focusPrevious, getFocusedIndex, getFocusedItem, isFocused
protected int getItemCount()
FocusModel
listView.getItems().size()
. The valid range of focusable
indices is between 0 and whatever is returned by this method.getItemCount
in class FocusModel<TreeItem<T>>
protected TreeItem<T> getModelItem(int index)
FocusModel
listView.getItems().get(index)
.getModelItem
in class FocusModel<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