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:
- the application should be implemented in the "launch" method
of a class implementing the
MenuLaunchable
interface,
- an object of this class and a menu label must be registered
using the
registerApp
method of this class during the
bootstrapping
process of SEMPER.
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
-
addSubMenu(String)
- Add an item with submenu to the current menu
-
getTopMenu()
- Get a handle to the top level ApplicationsMenu object
-
performCommand(String, Object)
- Implementing the
Target
interface
-
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.
-
registerApp(MenuLaunchable, String)
- Register an application with this ApplicationsMenu.
performCommand
public void performCommand(String appname,
Object data)
- Implementing the
Target
interface
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)
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)
getTopMenu
public static ApplicationsMenu getTopMenu()
- Get a handle to the top level ApplicationsMenu object
- Returns:
- top level menu
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