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
-
addColorChooser()
- Shows a ColorChooser in an InternalWindow.
-
addImageChooser()
- Shows an ImageChooser in an InternalWindow
-
addMenu(String)
- Adds a menu with text to the main menu
-
addStatusText(String)
- Appends the text text at the end of the text in
the Status Window.
-
askUser(String, String, String, String, boolean)
- This method shows a FreeDialog without the need for the TINGUIN.
-
endSession(TinguinSession)
- Removes the session and its button in the Session-Window.
-
getImagePath()
-
-
getRootView()
-
-
init()
- Opens an ExternalWindow for the TINGUIN.
-
init(boolean)
- This is the init method with the option not to start the
graphical user interface at all.
-
init(String, int, int)
- Opens an ExternalWindow for the TINGUIN with title title,
width width and height height.
-
newSession(String)
- Creates a new session with name name.
-
semperImage()
-
-
setStatusText(String)
- Sets the text text in the Status Window.
-
windowDidBecomeMain(Window)
- Implementation of the WindowOwner interface.
-
windowDidHide(Window)
- Implementation of the WindowOwner interface.
-
windowDidResignMain(Window)
- Implementation of the WindowOwner interface.
-
windowDidShow(Window)
- Implementation of the WindowOwner interface.
-
windowWillHide(Window)
- Implementation of the WindowOwner interface.
-
windowWillShow(Window)
- Implementation of the WindowOwner interface.
-
windowWillSizeBy(Window, Size)
- Implementation of the WindowOwner interface.
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.
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
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
semperImage
public static String semperImage()
- Returns:
- the path to a local SEMPER logo which can be displayed
in HTML.
getImagePath
public static String getImagePath()
- Returns:
- the path to the images needed by the tinguin
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
getRootView
public static RootView getRootView()
- Returns:
- the RootView of the ExternalWindow
addColorChooser
public static void addColorChooser()
- Shows a ColorChooser in an InternalWindow.
addImageChooser
public static void addImageChooser()
- Shows an ImageChooser in an InternalWindow
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.
endSession
public static void endSession(TinguinSession s)
- Removes the session and its button in the Session-Window.
- Parameters:
- s - The session to be removed
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
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
addMenu
public static MenuItem addMenu(String text)
- Adds a menu with text to the main menu
- Returns:
- the coresponding MenuItem
windowDidHide
public void windowDidHide(Window win)
- Implementation of the WindowOwner interface.
You should never call this method.
windowWillHide
public boolean windowWillHide(Window win)
- Implementation of the WindowOwner interface.
You should never call this method.
windowDidBecomeMain
public void windowDidBecomeMain(Window win)
- Implementation of the WindowOwner interface.
You should never call this method.
windowDidResignMain
public void windowDidResignMain(Window win)
- Implementation of the WindowOwner interface.
You should never call this method.
windowDidShow
public void windowDidShow(Window win)
- Implementation of the WindowOwner interface.
You should never call this method.
windowWillShow
public boolean windowWillShow(Window win)
- Implementation of the WindowOwner interface.
You should never call this method.
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