static class TabPane.TabPaneSelectionModel extends SingleSelectionModel<Tab>
selectedIndex, selectedItem| Constructor and Description |
|---|
TabPane.TabPaneSelectionModel(TabPane t) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getItemCount()
Gets the number of items available for the selection model.
|
protected Tab |
getModelItem(int index)
Gets the data model item associated with a specific index.
|
void |
select(int index)
Selects the given index.
|
void |
select(Tab tab)
Selects the index for the first instance of given object in the underlying
data model.
|
clearAndSelect, clearSelection, clearSelection, isEmpty, isSelected, selectFirst, selectLast, selectNext, selectPreviousgetSelectedIndex, getSelectedItem, selectedIndexProperty, selectedItemProperty, setSelectedIndex, setSelectedItempublic TabPane.TabPaneSelectionModel(TabPane t)
public void select(int index)
SingleSelectionModelselect in class SingleSelectionModel<Tab>index - The position of the item to select in the selection model.public void select(Tab tab)
SingleSelectionModelselect in class SingleSelectionModel<Tab>tab - The object to attempt to select in the underlying data model.protected Tab getModelItem(int index)
SingleSelectionModelgetModelItem in class SingleSelectionModel<Tab>index - The position of the item in the underlying data model.protected int getItemCount()
SingleSelectionModelgetItemCount in class SingleSelectionModel<Tab>Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.