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

Constructor Index

 o TinguinManager()

Method Index

 o closeSession(TinguinDisplay)
Closes down a TINGUIN session.
 o getSession(String)
Retrieve the display to a session given through by name.
 o init()
This method initialize the tinguin.
 o isInitialized()
This method checks if the TinguinManger is already initialized.
 o newSession(String)
Open a new TINGUIN session.
 o registerMenu(Menu, MenuHandler)
Register a custom menu.

Constructors

 o TinguinManager
  public TinguinManager()

Methods

 o newSession
  public static synchronized TinguinDisplay newSession(String name)
Open a new TINGUIN session. Return the TinguinDisplay
Parameters:
name - The name of the session
 o 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?
 o 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.
 o init
  public static void init()
This method initialize the tinguin. Currently it ensures that that a window is shown.
 o 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.
 o 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