Package org.apache.pivot.wtk
Interface AccordionSelectionListener
-
- All Known Implementing Classes:
AccordionSelectionListener.Adapter
,AccordionSelectionListener.Listeners
,TerraAccordionSkin
public interface AccordionSelectionListener
Accordion selection listener interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AccordionSelectionListener.Adapter
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.static class
AccordionSelectionListener.Listeners
Accordion selection listeners.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Vote
previewSelectedIndexChange(Accordion accordion, int selectedIndex)
Called to preview a selected index change.default void
selectedIndexChanged(Accordion accordion, int previousSelectedIndex)
Called when an accordion's selected index has changed.default void
selectedIndexChangeVetoed(Accordion accordion, Vote reason)
Called when a selected index change has been vetoed.
-
-
-
Method Detail
-
previewSelectedIndexChange
default Vote previewSelectedIndexChange(Accordion accordion, int selectedIndex)
Called to preview a selected index change.- Parameters:
accordion
- The source of the event.selectedIndex
- The index that will be selected.- Returns:
- The consensus vote as to whether to allow the selected index change.
-
selectedIndexChangeVetoed
default void selectedIndexChangeVetoed(Accordion accordion, Vote reason)
Called when a selected index change has been vetoed.- Parameters:
accordion
- The source of the event.reason
- The reason the event was vetoed.
-
selectedIndexChanged
default void selectedIndexChanged(Accordion accordion, int previousSelectedIndex)
Called when an accordion's selected index has changed.- Parameters:
accordion
- The source of the event.previousSelectedIndex
- If the selection changed directly, contains the index that was previously selected. Otherwise, contains the current selection.
-
-