org.graffiti.session
Interface SessionManager

All Known Implementing Classes:
MainFrame

public interface SessionManager

Manages the session objects.

See Also:
Session

Method Summary
 void addSession(Session es)
          Adds the given session to the list of sessions.
 void addSessionListener(SessionListener sl)
          Adds a SelectionListener.
 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()
          Returns true, if a session is active.
 boolean removeSession(Session es)
          Removes the given session from the list of sessions.
 void removeSessionListener(SessionListener sl)
          Removes a SelectionListener.
 

Method Detail

getActiveSession

Session getActiveSession()
Returns the current active session.

Returns:
the current active session.

isSessionActive

boolean isSessionActive()
Returns true, if a session is active.

Returns:
true, if a session is active.

getSessionsIterator

Iterator<Session> getSessionsIterator()
Returns an iterator over all sessions.

Returns:
an iterator over all sessions.

addSession

void addSession(Session es)
Adds the given session to the list of sessions.

Parameters:
es - the new session to add.

addSessionListener

void addSessionListener(SessionListener sl)
Adds a SelectionListener.


fireSessionDataChanged

void fireSessionDataChanged(Session session)
Called, if the session or data (except graph data) in the session have been changed.


removeSession

boolean removeSession(Session es)
Removes the given session from the list of sessions.

Parameters:
es - the session to remove from the list.
Returns:
true if the remove operation was successful

removeSessionListener

void removeSessionListener(SessionListener sl)
Removes a SelectionListener.



Generated at 2012-05-30 11:00:36 PM CEST