All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.tinguin2.TinguinManager

java.lang.Object
   |
   +----semper.tinguin2.TinguinManager

public class TinguinManager
extends Object
implements WindowOwner
Manages the TinguinSessions. This class has only static methods.

Version:
0.1
Author:
Christian Haag

Method Index

 o addColorChooser()
Shows a ColorChooser in an InternalWindow.
 o addImageChooser()
Shows an ImageChooser in an InternalWindow
 o addMenu(String)
Adds a menu with text to the main menu
 o addStatusText(String)
Appends the text text at the end of the text in the Status Window.
 o askUser(String, String, String, String, boolean)
This method shows a FreeDialog without the need for the TINGUIN.
 o endSession(TinguinSession)
Removes the session and its button in the Session-Window.
 o getImagePath()
 o getRootView()
 o init()
Opens an ExternalWindow for the TINGUIN.
 o init(boolean)
This is the init method with the option not to start the graphical user interface at all.
 o init(String, int, int)
Opens an ExternalWindow for the TINGUIN with title title, width width and height height.
 o newSession(String)
Creates a new session with name name.
 o semperImage()
 o setStatusText(String)
Sets the text text in the Status Window.
 o windowDidBecomeMain(Window)
Implementation of the WindowOwner interface.
 o windowDidHide(Window)
Implementation of the WindowOwner interface.
 o windowDidResignMain(Window)
Implementation of the WindowOwner interface.
 o windowDidShow(Window)
Implementation of the WindowOwner interface.
 o windowWillHide(Window)
Implementation of the WindowOwner interface.
 o windowWillShow(Window)
Implementation of the WindowOwner interface.
 o windowWillSizeBy(Window, Size)
Implementation of the WindowOwner interface.

Methods

 o init
 public static void init()
Opens an ExternalWindow for the TINGUIN. Also opens an InternalWindow which holds the Control Buttons and an InternalWindow for the Status Messages.

 o init
 public static void init(boolean server)
This is the init method with the option not to start the graphical user interface at all. After this method you can ask for username, password, etc. with the method askUser.

Parameters:
server - If true the TINGUIN is not shown
 o init
 public static void init(String title,
                         int width,
                         int height)
Opens an ExternalWindow for the TINGUIN with title title, width width and height height. Also opens an InternalWindow which holds the Session Buttons and an InternalWindow for the Status Messages.

Parameters:
title - The title of the ExternalWindow
width - The width of the ExternalWindow
height - height of the ExternalWindow
 o semperImage
 public static String semperImage()
Returns:
the path to a local SEMPER logo which can be displayed in HTML.
 o getImagePath
 public static String getImagePath()
Returns:
the path to the images needed by the tinguin
 o askUser
 public static String askUser(String title,
                              String html,
                              String text,
                              String edit,
                              boolean isPassword)
This method shows a FreeDialog without the need for the TINGUIN. It can be called after TinguinManager.init(true).

Parameters:
title - The title of the FreeDialog
html - The HTML-Text shown
text - The left text of the EditField shown under the HTML-Text
edit - The default text for the EditField
isPassword - If true the input is hidden
 o getRootView
 public static RootView getRootView()
Returns:
the RootView of the ExternalWindow
 o addColorChooser
 public static void addColorChooser()
Shows a ColorChooser in an InternalWindow.

 o addImageChooser
 public static void addImageChooser()
Shows an ImageChooser in an InternalWindow

 o newSession
 public static TinguinSession newSession(String name)
Creates a new session with name name. Also adds a button for the session in the Session-Window.

Returns:
returns the created session.
 o endSession
 public static void endSession(TinguinSession s)
Removes the session and its button in the Session-Window.

Parameters:
s - The session to be removed
 o setStatusText
 public static void setStatusText(String text)
Sets the text text in the Status Window. (The old text is deleted.)

Parameters:
text - The text to be set
 o addStatusText
 public static void addStatusText(String text)
Appends the text text at the end of the text in the Status Window.

Parameters:
text - The text to be appended
 o addMenu
 public static MenuItem addMenu(String text)
Adds a menu with text to the main menu

Returns:
the coresponding MenuItem
 o windowDidHide
 public void windowDidHide(Window win)
Implementation of the WindowOwner interface. You should never call this method.

 o windowWillHide
 public boolean windowWillHide(Window win)
Implementation of the WindowOwner interface. You should never call this method.

 o windowDidBecomeMain
 public void windowDidBecomeMain(Window win)
Implementation of the WindowOwner interface. You should never call this method.

 o windowDidResignMain
 public void windowDidResignMain(Window win)
Implementation of the WindowOwner interface. You should never call this method.

 o windowDidShow
 public void windowDidShow(Window win)
Implementation of the WindowOwner interface. You should never call this method.

 o windowWillShow
 public boolean windowWillShow(Window win)
Implementation of the WindowOwner interface. You should never call this method.

 o windowWillSizeBy
 public void windowWillSizeBy(Window win,
                              Size s)
Implementation of the WindowOwner interface. You should never call this method.


All Packages  Class Hierarchy  This Package  Previous  Next  Index