org.apache.pivot.wtk
Class MenuHandler.Adapter

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

public static class MenuHandler.Adapter
extends Object
implements MenuHandler

Menu handler adapter.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.MenuHandler
MenuHandler.Adapter
 
Constructor Summary
MenuHandler.Adapter()
           
 
Method Summary
 void cleanupMenuBar(Component component, MenuBar menuBar)
          Called to allow an implementation to perform cleanup on a menu bar.
 boolean configureContextMenu(Component component, Menu menu, int x, int y)
          Called to allow an implementation to configure a context menu.
 void configureMenuBar(Component component, MenuBar menuBar)
          Called to allow an implementation to configure a menu bar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuHandler.Adapter

public MenuHandler.Adapter()
Method Detail

configureMenuBar

public void configureMenuBar(Component component,
                             MenuBar menuBar)
Description copied from interface: MenuHandler
Called to allow an implementation to configure a menu bar.

Specified by:
configureMenuBar in interface MenuHandler

cleanupMenuBar

public void cleanupMenuBar(Component component,
                           MenuBar menuBar)
Description copied from interface: MenuHandler
Called to allow an implementation to perform cleanup on a menu bar.

Specified by:
cleanupMenuBar in interface MenuHandler

configureContextMenu

public boolean configureContextMenu(Component component,
                                    Menu menu,
                                    int x,
                                    int y)
Description copied from interface: MenuHandler
Called to allow an implementation to configure a context menu.

Specified by:
configureContextMenu in interface MenuHandler
Returns:
true to stop propagation of context menu configuration; false to allow it to continue