static class AccordionBehavior.AccordionFocusModel extends FocusModel<TitledPane>
Modifier and Type | Field and Description |
---|---|
private Accordion |
accordion |
private ChangeListener<java.lang.Boolean> |
focusListener |
private ChangeListener<java.lang.Boolean> |
paneFocusListener |
private ListChangeListener<TitledPane> |
panesListener |
Constructor and Description |
---|
AccordionFocusModel(Accordion accordion) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
dispose() |
void |
focusNext()
Attempts to give focus to the row after to the currently focused row.
|
void |
focusPrevious()
Attempts to give focus to the row previous to the currently focused row.
|
protected int |
getItemCount()
Returns the number of items in the data model that underpins the control.
|
protected TitledPane |
getModelItem(int row)
Returns the item at the given index.
|
focus, focusedIndexProperty, focusedItemProperty, getFocusedIndex, getFocusedItem, isFocused
private final Accordion accordion
private final ChangeListener<java.lang.Boolean> focusListener
private final ChangeListener<java.lang.Boolean> paneFocusListener
private final ListChangeListener<TitledPane> panesListener
public AccordionFocusModel(Accordion accordion)
void dispose()
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<TitledPane>
protected TitledPane getModelItem(int row)
FocusModel
listView.getItems().get(index)
.getModelItem
in class FocusModel<TitledPane>
row
- The index of the item that is requested from the underlying
data model.public void focusPrevious()
FocusModel
focusPrevious
in class FocusModel<TitledPane>
public void focusNext()
FocusModel
focusNext
in class FocusModel<TitledPane>