public interface AccordionSelectionListener
Modifier and Type | Interface and Description |
---|---|
static class |
AccordionSelectionListener.Adapter
Accordion selection listener adapter.
|
Modifier and Type | Method and Description |
---|---|
Vote |
previewSelectedIndexChange(Accordion accordion,
int selectedIndex)
Called to preview a selected index change.
|
void |
selectedIndexChanged(Accordion accordion,
int previousSelectedIndex)
Called when an accordion's selected index has changed.
|
void |
selectedIndexChangeVetoed(Accordion accordion,
Vote reason)
Called when a selected index change has been vetoed.
|
Vote previewSelectedIndexChange(Accordion accordion, int selectedIndex)
accordion
- The source of the event.selectedIndex
- The index that will be selected.void selectedIndexChangeVetoed(Accordion accordion, Vote reason)
accordion
- The source of the event.reason
- The reason the event was vetoed.void selectedIndexChanged(Accordion accordion, int previousSelectedIndex)
accordion
- The source of the event.previousSelectedIndex
- If the selection changed directly, contains the index that was previously
selected. Otherwise, contains the current selection.