Package org.apache.pivot.wtk
Class AccordionSelectionListener.Adapter
- java.lang.Object
-
- org.apache.pivot.wtk.AccordionSelectionListener.Adapter
-
- All Implemented Interfaces:
AccordionSelectionListener
- Enclosing interface:
- AccordionSelectionListener
@Deprecated public static class AccordionSelectionListener.Adapter extends java.lang.Object implements AccordionSelectionListener
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.Accordion selection listener adapter.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.AccordionSelectionListener
AccordionSelectionListener.Adapter, AccordionSelectionListener.Listeners
-
-
Constructor Summary
Constructors Constructor Description Adapter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Vote
previewSelectedIndexChange(Accordion accordion, int selectedIndex)
Deprecated.Called to preview a selected index change.void
selectedIndexChanged(Accordion accordion, int previousSelectedIndex)
Deprecated.Called when an accordion's selected index has changed.void
selectedIndexChangeVetoed(Accordion accordion, Vote reason)
Deprecated.Called when a selected index change has been vetoed.
-
-
-
Method Detail
-
previewSelectedIndexChange
public Vote previewSelectedIndexChange(Accordion accordion, int selectedIndex)
Deprecated.Description copied from interface:AccordionSelectionListener
Called to preview a selected index change.- Specified by:
previewSelectedIndexChange
in interfaceAccordionSelectionListener
- 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
public void selectedIndexChangeVetoed(Accordion accordion, Vote reason)
Deprecated.Description copied from interface:AccordionSelectionListener
Called when a selected index change has been vetoed.- Specified by:
selectedIndexChangeVetoed
in interfaceAccordionSelectionListener
- Parameters:
accordion
- The source of the event.reason
- The reason the event was vetoed.
-
selectedIndexChanged
public void selectedIndexChanged(Accordion accordion, int previousSelectedIndex)
Deprecated.Description copied from interface:AccordionSelectionListener
Called when an accordion's selected index has changed.- Specified by:
selectedIndexChanged
in interfaceAccordionSelectionListener
- 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.
-
-