All Packages Class Hierarchy This Package Previous Next Index
class ABCMenuHandler implements MenuHandler { public ABCMenuHandler() { ..... Menu myMenu = new Menu("My Menu"); myMenu.add(new MenuItem("Bla Bla"); ..... TinguinManager.registerMenu(this, myMenu); ... } public void menuAction(Menuitem m) { .... if (m.getLabel().equals("Bla Bla")) ABCManager.doSomething(); } } class ABCManager { private static ABCMenuHandler __handler = new ABCMenuHandler(); static public void doSomething() ...Classes that implement this interface only have to provide an implementation for the method menuAction. This method is invoked in case that the user selects an item of that specific custom menu. The menuAction method should then invoke specific action depending on the actual item.
public abstract void menuAction(MenuItem item)
All Packages Class Hierarchy This Package Previous Next Index