org.apache.pivot.wtk
Class MenuListener.Adapter

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

public static class MenuListener.Adapter
extends Object
implements MenuListener

Menu listener adapter.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.MenuListener
MenuListener.Adapter
 
Constructor Summary
MenuListener.Adapter()
           
 
Method Summary
 void activeItemChanged(Menu menu, Menu.Item previousActiveItem)
          Called when a menu's active item has changed.
 void sectionInserted(Menu menu, int index)
          Called when a menu section has been inserted.
 void sectionsRemoved(Menu menu, int index, Sequence<Menu.Section> removed)
          Called when menu sections have been removed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuListener.Adapter

public MenuListener.Adapter()
Method Detail

sectionInserted

public void sectionInserted(Menu menu,
                            int index)
Description copied from interface: MenuListener
Called when a menu section has been inserted.

Specified by:
sectionInserted in interface MenuListener

sectionsRemoved

public void sectionsRemoved(Menu menu,
                            int index,
                            Sequence<Menu.Section> removed)
Description copied from interface: MenuListener
Called when menu sections have been removed.

Specified by:
sectionsRemoved in interface MenuListener

activeItemChanged

public void activeItemChanged(Menu menu,
                              Menu.Item previousActiveItem)
Description copied from interface: MenuListener
Called when a menu's active item has changed.

Specified by:
activeItemChanged in interface MenuListener