org.apache.pivot.wtk
Class MenuBarListener.Adapter

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

public static class MenuBarListener.Adapter
extends Object
implements MenuBarListener

Menu bar listener adapter.


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

Constructor Detail

MenuBarListener.Adapter

public MenuBarListener.Adapter()
Method Detail

itemInserted

public void itemInserted(MenuBar menuBar,
                         int index)
Description copied from interface: MenuBarListener
Called when a menu bar item has been inserted.

Specified by:
itemInserted in interface MenuBarListener

itemsRemoved

public void itemsRemoved(MenuBar menuBar,
                         int index,
                         Sequence<MenuBar.Item> removed)
Description copied from interface: MenuBarListener
Called when menu bar items have been removed.

Specified by:
itemsRemoved in interface MenuBarListener

activeItemChanged

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

Specified by:
activeItemChanged in interface MenuBarListener