static class ChoiceBox.ChoiceBoxSelectionModel<T> extends SingleSelectionModel<T>
selectedIndexProperty, selectedItemProperty
Constructor and Description |
---|
ChoiceBoxSelectionModel(ChoiceBox<T> cb) |
Modifier and Type | Method and Description |
---|---|
protected int |
getItemCount()
Gets the number of items available for the selection model.
|
protected T |
getModelItem(int index)
Gets the data model item associated with a specific index.
|
void |
select(int index)
Selects the given row.
|
void |
selectNext()
Selects the next index.
|
void |
selectPrevious()
Selects the previous index.
|
clearAndSelect, clearSelection, clearSelection, isEmpty, isSelected, select, selectFirst, selectLast
getSelectedIndex, getSelectedItem, selectedIndexProperty, selectedItemProperty, setSelectedIndex, setSelectedItem
protected T getModelItem(int index)
SingleSelectionModel
getModelItem
in class SingleSelectionModel<T>
index
- The position of the item in the underlying data model.protected int getItemCount()
SingleSelectionModel
getItemCount
in class SingleSelectionModel<T>
public void select(int index)
select
in class SingleSelectionModel<T>
index
- The position of the item to select in the selection model.public void selectPrevious()
selectPrevious
in class SingleSelectionModel<T>
public void selectNext()
selectNext
in class SingleSelectionModel<T>