Class semper.tinguin.TinguinManager
All Packages Class Hierarchy This Package Previous Next Index
Class semper.tinguin.TinguinManager
java.lang.Object
|
+----semper.tinguin.TinguinManager
- public class TinguinManager
- extends Object
The TINGUIN Manger, a static class that take care of the
TinguinDisplays in different sessions.
- Version:
- 0.6
- Author:
- Tobias Himstedt
- See Also:
- TinguinDisplay
-
TinguinManager()
-
-
closeSession(TinguinDisplay)
- Closes down a TINGUIN session.
-
getSession(String)
- Retrieve the display to a session given through by name.
-
init()
- This method initialize the tinguin.
-
isInitialized()
- This method checks if the TinguinManger is already initialized.
-
newSession(String)
- Open a new TINGUIN session.
-
registerMenu(Menu, MenuHandler)
- Register a custom menu.
TinguinManager
public TinguinManager()
newSession
public static synchronized TinguinDisplay newSession(String name)
- Open a new TINGUIN session. Return the TinguinDisplay
- Parameters:
- name - The name of the session
getSession
public static synchronized TinguinDisplay getSession(String name)
- Retrieve the display to a session given through by name. Precondition:
All names must be unique.
- Parameters:
- name - - The name of the session.
- Returns:
- The display. In case no session with that name exists null is
returned. Should I introduce exceptions?
closeSession
public static synchronized void closeSession(TinguinDisplay d)
- Closes down a TINGUIN session. After closing a session/display it is not
available anymore. It should not be used further.
- Parameters:
- d - The TinguinDisplay to closed.
init
public static void init()
- This method initialize the tinguin. Currently it ensures that that a window is
shown.
isInitialized
public static boolean isInitialized()
- This method checks if the TinguinManger is already initialized.
- Returns:
- In case it is already initialized (init() was already invoked) true is
returned.
registerMenu
public static void registerMenu(Menu m,
MenuHandler handler)
- Register a custom menu. With this it is possible to link in AWT menu
a menu.
- Parameters:
- m - - The menu which should be linked in.
- handler - - The MenuHandler which is responsible for the
event handling of that menu.
- See Also:
-
All Packages Class Hierarchy This Package Previous Next Index