Package org.graffiti.session
Interface SessionManager
- All Known Implementing Classes:
MainFrame
public interface SessionManager
Manages the session objects.
- See Also:
Session
-
Method Summary
Modifier and Type Method Description voidaddSession(Session es)Adds the given session to the list of sessions.voidaddSessionListener(SessionListener sl)Adds aSelectionListener.booleancloseSession(Session es)Removes the given session from the list of sessions.voidfireSessionDataChanged(Session session)Called, if the session or data (except graph data) in the session have been changed.SessiongetActiveSession()Returns the current active session.Iterator<Session>getSessionsIterator()Returns an iterator over all sessions.booleanisSessionActive()Returnstrue, if a session is active.voidremoveSessionListener(SessionListener sl)Removes aSelectionListener.
-
Method Details
-
getActiveSession
Session getActiveSession()Returns the current active session.- Returns:
- the current active session.
-
isSessionActive
boolean isSessionActive()Returnstrue, if a session is active.- Returns:
true, if a session is active.
-
getSessionsIterator
Returns an iterator over all sessions.- Returns:
- an iterator over all sessions.
-
addSession
Adds the given session to the list of sessions.- Parameters:
es- the new session to add.
-
addSessionListener
Adds aSelectionListener. -
fireSessionDataChanged
Called, if the session or data (except graph data) in the session have been changed. -
closeSession
Removes the given session from the list of sessions.- Parameters:
es- the session to remove from the list.
-
removeSessionListener
Removes aSelectionListener.
-