org.apache.pivot.wtk
Interface AccordionSelectionListener

All Known Implementing Classes:
AccordionSelectionListener.Adapter, TerraAccordionSkin

public interface AccordionSelectionListener

Accordion selection listener interface.


Nested Class Summary
static class AccordionSelectionListener.Adapter
          Accordion selection listener adapter.
 
Method Summary
 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.
 

Method Detail

previewSelectedIndexChange

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.

selectedIndexChangeVetoed

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

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.