|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gui.Session
Class Session. The Session object keeps all information of a program execution. It keeps track of all SFCs and their status, which are included in the current program run. The Session manages the Projects and offers the ability to create new, import or export Projects.
Constructor Summary | |
Session()
The standard constructor. |
|
Session(java.io.File _file)
The constructor. |
Method Summary | |
void |
addProject(Project _project)
Adds a Project object to the session. |
void |
disposeEditors()
Shuts down all pending editor frames. |
java.io.File |
getFile()
Returns the session filename. |
java.lang.String |
getName()
Returns the session name. |
java.util.Vector |
getNamesList()
|
Project |
getProject(java.lang.Object key)
Returns the corresponding Project object. |
java.util.Vector |
getProjectList()
to get the projectvector to display the list |
boolean |
isEmpty()
|
boolean |
isModified()
Returns the modified flag. |
boolean |
isSaved()
Returns the saved flag of a session. |
int |
noOfProjects()
Returns the number of Projects in the session. |
static Session |
read(java.io.File _file)
|
void |
removeProject(Project _project)
Removes a Project from the session. |
void |
save(java.io.File _file)
Saves the whole Session inclusive all Projects. |
void |
setFile(java.io.File _file)
Sets the session filename. |
void |
setModified(boolean status)
Sets the modified flag. |
void |
setSaved(boolean status)
Sets the saved status. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Session()
public Session(java.io.File _file)
Method Detail |
public java.lang.String getName()
public java.io.File getFile()
public void setFile(java.io.File _file) throws java.lang.Exception
_file
- The defined filename with full pathname.public void setSaved(boolean status)
status
- The actual condition of the saved flag.public boolean isSaved()
public void setModified(boolean status)
status
- The condition of the modified flag. If modified, status = true, else false.public boolean isModified()
public int noOfProjects()
public Project getProject(java.lang.Object key)
key
- Specifies the object to search for.public void addProject(Project _project) throws java.lang.Exception
_project
- Specifies the Object to be added to the session.java.lang.Exception
- if parameter is null or the added Object allready was part of the session.public void removeProject(Project _project)
_project
- Specifies the object to be removed from the current session.public boolean isEmpty()
public void disposeEditors()
public void save(java.io.File _file) throws java.lang.Exception
_file
- Specifies the file in which to store the entire Session.public static Session read(java.io.File _file) throws java.lang.Exception
public java.util.Vector getProjectList()
public java.util.Vector getNamesList()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |