T
- the item typepublic class ListSingleSelectionModel<T> extends SingleSelectionModel<T>
List
based SingleSelectionModel
implementation.selectedIndex, selectedItem
Constructor and Description |
---|
ListSingleSelectionModel(List<? extends T> list)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
protected int |
getItemCount() |
protected T |
getModelItem(int index) |
void |
select(T obj)
This implementation only selects the provided item if it's in the list.
|
clearAndSelect, clearSelection, clearSelection, isEmpty, isSelected, select, selectFirst, selectLast, selectNext, selectPrevious
getSelectedIndex, getSelectedItem, selectedIndexProperty, selectedItemProperty, setSelectedIndex, setSelectedItem
protected T getModelItem(int index)
getModelItem
in class SingleSelectionModel<T>
protected int getItemCount()
getItemCount
in class SingleSelectionModel<T>
public void select(T obj)
select
in class SingleSelectionModel<T>
Copyright © 2012–2018 Drombler. All rights reserved.