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 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.
 

Method Detail

configureMenuBar

void configureMenuBar(Component component,
                      MenuBar menuBar)
Called when a component to which this handler is attached gains the focus.

Parameters:
component -
menuBar -

cleanupMenuBar

void cleanupMenuBar(Component component,
                    MenuBar menuBar)
Called when a component to which this handler is attached loses the focus.

Parameters:
component -
menuBar -

configureContextMenu

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.

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