org.apache.pivot.wtk
Interface MenuHandler

All Known Implementing Classes:
MenuHandler.Adapter

public interface MenuHandler

Menu handler interface.


Nested Class Summary
static class MenuHandler.Adapter
          Menu handler 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.
 

Method Detail

configureMenuBar

void configureMenuBar(Component component,
                      MenuBar menuBar)
Called to allow an implementation to configure a menu bar.

Parameters:
component -
menuBar -

cleanupMenuBar

void cleanupMenuBar(Component component,
                    MenuBar menuBar)
Called to allow an implementation to perform cleanup on a menu bar.

Parameters:
component -
menuBar -

configureContextMenu

boolean configureContextMenu(Component component,
                             Menu menu,
                             int x,
                             int y)
Called to allow an implementation to configure a context menu.

Parameters:
component -
menu -
x -
y -
Returns:
true to stop propagation of context menu configuration; false to allow it to continue