org.apache.pivot.wtk
Class AccordionSelectionListener.Adapter

java.lang.Object
  extended by org.apache.pivot.wtk.AccordionSelectionListener.Adapter
All Implemented Interfaces:
AccordionSelectionListener
Enclosing interface:
AccordionSelectionListener

public static class AccordionSelectionListener.Adapter
extends Object
implements AccordionSelectionListener

Accordion selection listener adapter.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.AccordionSelectionListener
AccordionSelectionListener.Adapter
 
Constructor Summary
AccordionSelectionListener.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccordionSelectionListener.Adapter

public AccordionSelectionListener.Adapter()
Method Detail

previewSelectedIndexChange

public Vote previewSelectedIndexChange(Accordion accordion,
                                       int selectedIndex)
Description copied from interface: AccordionSelectionListener
Called to preview a selected index change.

Specified by:
previewSelectedIndexChange in interface AccordionSelectionListener
Parameters:
accordion - The source of the event.
selectedIndex - The index that will be selected.

selectedIndexChangeVetoed

public void selectedIndexChangeVetoed(Accordion accordion,
                                      Vote reason)
Description copied from interface: AccordionSelectionListener
Called when a selected index change has been vetoed.

Specified by:
selectedIndexChangeVetoed in interface AccordionSelectionListener
Parameters:
accordion - The source of the event.
reason - The reason the event was vetoed.

selectedIndexChanged

public void selectedIndexChanged(Accordion accordion,
                                 int previousSelectedIndex)
Description copied from interface: AccordionSelectionListener
Called when an accordion's selected index has changed.

Specified by:
selectedIndexChanged in interface AccordionSelectionListener
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.