All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.util.bootstrap.ApplicationsMenu

java.lang.Object
   |
   +----semper.util.bootstrap.ApplicationsMenu

public class ApplicationsMenu
extends Object
implements Target
This class provides a standard way of registering "special" applications (e.g. purse management) to be launched via a pull down menu on the Tinguin. In order to be launchable from this menu, the following steps are necessary: At the end of Library.init(), the applications menu will be closed. No further additions will be allowed.

Version:
$Revision: 1.7 $ $Date: 1998/08/18 08:22:02 $
Author:
N. Asokan ([email protected])
See Also:
MenuLaunchable, Libray

Method Index

 o addSubMenu(String)
Add an item with submenu to the current menu
 o getTopMenu()
Get a handle to the top level ApplicationsMenu object
 o performCommand(String, Object)
Implementing the Target interface
 o register(MenuLaunchable, String)
This method is deprecated Instead, you should use the getTopMenu() method to get a handle of the top level menu object and then use registerApp on that object.
 o registerApp(MenuLaunchable, String)
Register an application with this ApplicationsMenu.

Methods

 o performCommand
 public void performCommand(String appname,
                            Object data)
Implementing the Target interface

 o register
 public static boolean register(MenuLaunchable m,
                                String label)
This method is deprecated Instead, you should use the getTopMenu() method to get a handle of the top level menu object and then use registerApp on that object. Register an application with the top level ApplicationsMenu. Once installed, a user can launch the application by clicking on the corresponding menu item.

Parameters:
m - an object implementing the MenuLaunchable interface
label - the String which will be displayed on the menu
Returns:
s true if registration succeeeded; false if registration failed (registration failed if attempted after the menu has been installed on Tinguin)
 o registerApp
 public boolean registerApp(MenuLaunchable m,
                            String label)
Register an application with this ApplicationsMenu. Once installed, a user can launch the application by clicking on the corresponding menu item.

Parameters:
m - an object implementing the MenuLaunchable interface
label - the String which will be displayed on the menu
Returns:
s true if registration succeeeded; false if registration failed (registration failed if attempted after the menu has been installed on Tinguin)
 o getTopMenu
 public static ApplicationsMenu getTopMenu()
Get a handle to the top level ApplicationsMenu object

Returns:
top level menu
 o addSubMenu
 public ApplicationsMenu addSubMenu(String label)
Add an item with submenu to the current menu

Returns:
a handle to the added submenu

All Packages  Class Hierarchy  This Package  Previous  Next  Index