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
-
AUTO_PLACE_CENTER
- The last added window is centered, with the given size
-
AUTO_PLACE_CENTER_AND_MAXED
- The last added window is placed in the center and its size is maxed
-
AUTO_PLACE_HORIZ
- The windows of the session are auto-placed horizontally
-
AUTO_PLACE_VERT
- The windows of the session are auto-placed vertically
-
SELF_PLACE
- The last added window is not auto-placed
-
acquire()
- When a session wants to show windows on the TINGUIN it must
first acquire the display to avoid conflicts.
-
addWindow(InternalWindow)
- Adds an InternalWindow to the session.
-
addWindow(InternalWindow, int)
- Adds an InternalWindow to the session.
-
getName()
-
-
performCommand(String, Object)
- Implementation of the Target Interface.
-
release()
- When a session doesn't need the display, it should release it.
-
removeAllWindows()
- Removes all InternalWindows from the session.
-
removeWindow(InternalWindow)
- Removes an InternalWindow from the session.
AUTO_PLACE_VERT
public static int AUTO_PLACE_VERT
- The windows of the session are auto-placed vertically
AUTO_PLACE_HORIZ
public static int AUTO_PLACE_HORIZ
- The windows of the session are auto-placed horizontally
AUTO_PLACE_CENTER
public static int AUTO_PLACE_CENTER
- The last added window is centered, with the given size
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
SELF_PLACE
public static int SELF_PLACE
- The last added window is not auto-placed
getName
public String getName()
- Returns:
- The name of the session
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
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
removeWindow
public void removeWindow(InternalWindow win)
- Removes an InternalWindow from the session.
- Parameters:
- win - The InternalWindow
removeAllWindows
public void removeAllWindows()
- Removes all InternalWindows from the session.
acquire
public synchronized void acquire()
- When a session wants to show windows on the TINGUIN it must
first acquire the display to avoid conflicts.
release
public synchronized void release()
- When a session doesn't need the display, it should release it.
When released other session can acquire it.
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