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 when a component to which this handler is attached loses the focus.
 boolean configureContextMenu(Component component, Menu menu, int x, int y)
          Called when the user right-clicks on a component to which this handler is attached.
 void configureMenuBar(Component component, MenuBar menuBar)
          Called when a component to which this handler is attached gains the focus.
 
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 when a component to which this handler is attached gains the focus.

Specified by:
configureMenuBar in interface MenuHandler

cleanupMenuBar

public void cleanupMenuBar(Component component,
                           MenuBar menuBar)
Description copied from interface: MenuHandler
Called when a component to which this handler is attached loses the focus.

Specified by:
cleanupMenuBar in interface MenuHandler

configureContextMenu

public boolean configureContextMenu(Component component,
                                    Menu menu,
                                    int x,
                                    int y)
Description copied from interface: MenuHandler
Called when the user right-clicks on a component to which this handler is attached.

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