Class semper.util.bootstrap.ApplicationsMenu
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 MenuHandler
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 "register" method of this class during the bootstrapping
process of SEMPER.
At the end of Library#init, a pull down menu with the applications
registered so far will be installed on Tinguin.
- Version:
- $Revision: 1.4 $ $Date: 1997/01/20 15:31:55 $
- Author:
- N. Asokan ([email protected])
- See Also:
- MenuLaunchable, Libray
-
ApplicationsMenu()
- Public constructor which
- Disables further registration of applications
- Constructs a menu from the applications registered so far
and install it with Tinguin
- Used by: Library#init
-
menuAction(MenuItem)
- Implementing the MenuHandler interface.
-
register(MenuLaunchable, String)
- Register an application with the ApplicationsMenu.
ApplicationsMenu
public ApplicationsMenu()
- Public constructor which
- Disables further registration of applications
- Constructs a menu from the applications registered so far
and install it with Tinguin
- Used by: Library#init
- See Also:
- init, register
menuAction
public void menuAction(MenuItem m)
- Implementing the MenuHandler interface.
- Used by Tinguin
register
public static boolean register(MenuLaunchable m,
String label)
- Register an application with the 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)
All Packages Class Hierarchy This Package Previous Next Index