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 void
addSession(Session es)
Adds the given session to the list of sessions.void
addSessionListener(SessionListener sl)
Adds aSelectionListener
.boolean
closeSession(Session es)
Removes the given session from the list of sessions.void
fireSessionDataChanged(Session session)
Called, if the session or data (except graph data) in the session have been changed.Session
getActiveSession()
Returns the current active session.Iterator<Session>
getSessionsIterator()
Returns an iterator over all sessions.boolean
isSessionActive()
Returnstrue
, if a session is active.void
removeSessionListener(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
.
-