|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.gui.monitor.GuiObject frysk.gui.sessions.Session
public class Session
A Session object is used to hold and save user preferences with respect to a debug session.
Nested Class Summary | |
---|---|
static class |
Session.SessionType
|
Field Summary | |
---|---|
Session.SessionType |
sessionType
|
Fields inherited from class frysk.gui.monitor.GuiObject |
---|
propertiesChanged |
Constructor Summary | |
---|---|
Session()
Creates a new empty session object, with an empty list processes. |
|
Session(Session other)
Creates a new session, which is clone of the session that is passed in as a paraemter |
|
Session(String name,
String toolTip)
Creates a new empty session object, with an empty list processes. |
Method Summary | |
---|---|
void |
addDebugProcess(DebugProcess process)
Add a debug process to this session |
void |
addDefaultObservers()
|
void |
addGuiProc(GuiProc guiProc)
Searches to find if there is already a DebugProcess representing the executable of the given GuiProc. |
void |
addObserver(ObserverRoot observer)
|
boolean |
areProcsAdded()
|
void |
clearProcesses()
|
GuiObject |
getCopy()
|
ObservableLinkedList |
getObservers()
|
ObservableLinkedList |
getProcesses()
Return a list of debug process that are contained within this session object |
Session.SessionType |
getSessoinType()
|
void |
load(Element node)
To load a stored property one does this: String someString = node.getAttributeValue("someString"); To load @link frysk.gui.monitor.SaveableXXX one gets the appropriet node and tells that object to load itself from that node. |
void |
removeDebugProcess(DebugProcess process)
Remove a debug process from this session. |
void |
removeGuiProc(GuiProc proc)
|
void |
removeObserver(ObserverRoot observer)
|
void |
save(Element node)
Save object to the given node Saving Conventions: If this object has a property such as a String, char, int, etc, that is saved by using node.setAttribute("someProperty", someProperty); If this object contains composing @link frysk.gui.monitor.SaveableXXX then a node is created for that and that object is told to save itself to that node. |
void |
setName(String name)
|
void |
setProcsAdded(boolean procsAdded)
|
void |
setSessionType(Session.SessionType sessionType)
|
void |
startSession()
|
Methods inherited from class frysk.gui.monitor.GuiObject |
---|
dontSaveObject, doSaveObject, getName, getSummary, getToolTip, setSummay, setToolTip, shouldSaveObject, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public Session.SessionType sessionType
Constructor Detail |
---|
public Session()
public Session(Session other)
other
- - the session you want this session to clone.public Session(String name, String toolTip)
name
- - the name of the sessiontoolTip
- - the tool-tip or additional associative information.Method Detail |
---|
public void addDefaultObservers()
public void setName(String name)
setName
in class GuiObject
public void addObserver(ObserverRoot observer)
public void removeObserver(ObserverRoot observer)
public void addDebugProcess(DebugProcess process)
process
- - The Debug Process that is to be added.public void removeDebugProcess(DebugProcess process)
process
- - a reference to the debug process that is to be removed.public void addGuiProc(GuiProc guiProc)
guiProc
- public void removeGuiProc(GuiProc proc)
proc
- public GuiObject getCopy()
public ObservableLinkedList getProcesses()
public void clearProcesses()
public void startSession()
public ObservableLinkedList getObservers()
public void setProcsAdded(boolean procsAdded)
public boolean areProcsAdded()
public Session.SessionType getSessoinType()
public void setSessionType(Session.SessionType sessionType)
public void load(Element node)
SaveableXXX
load
in interface SaveableXXX
load
in class GuiObject
public void save(Element node)
SaveableXXX
save
in interface SaveableXXX
save
in class GuiObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |