All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.tinguin2.TinguinSession

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

public class TinguinSession
extends Object
implements Target
Main class for a session. a session consists of a name (unique), a button in the SessionWindow and several InternalWindows. Sessions are created with the command TinguinManager.newSession() and removed with TinguinManager.endSession().

Version:
0.1
Author:
Christian Haag
See Also:
TinguinManager

Variable Index

 o AUTO_PLACE_CENTER
The last added window is centered, with the given size
 o AUTO_PLACE_CENTER_AND_MAXED
The last added window is placed in the center and its size is maxed
 o AUTO_PLACE_HORIZ
The windows of the session are auto-placed horizontally
 o AUTO_PLACE_VERT
The windows of the session are auto-placed vertically
 o SELF_PLACE
The last added window is not auto-placed

Method Index

 o acquire()
When a session wants to show windows on the TINGUIN it must first acquire the display to avoid conflicts.
 o addWindow(InternalWindow)
Adds an InternalWindow to the session.
 o addWindow(InternalWindow, int)
Adds an InternalWindow to the session.
 o getName()
 o performCommand(String, Object)
Implementation of the Target Interface.
 o release()
When a session doesn't need the display, it should release it.
 o removeAllWindows()
Removes all InternalWindows from the session.
 o removeWindow(InternalWindow)
Removes an InternalWindow from the session.

Variables

 o AUTO_PLACE_VERT
 public static int AUTO_PLACE_VERT
The windows of the session are auto-placed vertically

 o AUTO_PLACE_HORIZ
 public static int AUTO_PLACE_HORIZ
The windows of the session are auto-placed horizontally

 o AUTO_PLACE_CENTER
 public static int AUTO_PLACE_CENTER
The last added window is centered, with the given size

 o AUTO_PLACE_CENTER_AND_MAXED
 public static int AUTO_PLACE_CENTER_AND_MAXED
The last added window is placed in the center and its size is maxed

 o SELF_PLACE
 public static int SELF_PLACE
The last added window is not auto-placed

Methods

 o getName
 public String getName()
Returns:
The name of the session
 o addWindow
 public void addWindow(InternalWindow win)
Adds an InternalWindow to the session. The window is centered and its size is maxed automatically.

Parameters:
win - The InternalWindow
 o addWindow
 public void addWindow(InternalWindow win,
                       int place)
Adds an InternalWindow to the session.

Parameters:
win - The InternalWindow
place - Decides whether the windows are vertically or horizontally placed or not auto-placed
 o removeWindow
 public void removeWindow(InternalWindow win)
Removes an InternalWindow from the session.

Parameters:
win - The InternalWindow
 o removeAllWindows
 public void removeAllWindows()
Removes all InternalWindows from the session.

 o acquire
 public synchronized void acquire()
When a session wants to show windows on the TINGUIN it must first acquire the display to avoid conflicts.

 o release
 public synchronized void release()
When a session doesn't need the display, it should release it. When released other session can acquire it.

 o performCommand
 public void performCommand(String command,
                            Object data)
Implementation of the Target Interface. You should never call this method.


All Packages  Class Hierarchy  This Package  Previous  Next  Index