static class ListView.ListViewFocusModel<T> extends FocusModel<T>
focusedIndex, focusedItem| Constructor and Description |
|---|
ListView.ListViewFocusModel(ListView<T> listView) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getItemCount()
Returns the number of items in the data model that underpins the control.
|
protected T |
getModelItem(int index)
Returns the item at the given index.
|
focus, focusedIndexProperty, focusedItemProperty, focusNext, focusPrevious, getFocusedIndex, getFocusedItem, isFocusedprotected int getItemCount()
FocusModellistView.getItems().size(). The valid range of focusable
indices is between 0 and whatever is returned by this method.getItemCount in class FocusModel<T>protected T getModelItem(int index)
FocusModellistView.getItems().get(index).getModelItem in class FocusModel<T>index - The index of the item that is requested from the underlying
data model.Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved.