public final class SessionLoadedEvent extends AbstractCyEvent<CySessionManager>
CySessionManager.setCurrentSession(CySession, String)
method and is used to notify interested parties in the change
of state.Module: session-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>session-api</artifactId> </dependency>
Constructor and Description |
---|
SessionLoadedEvent(CySessionManager source,
CySession session,
String fileName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getLoadedFileName()
Returns the file name of the session just loaded.
|
CySession |
getLoadedSession()
Returns the session that was just loaded.
|
getListenerClass, getSource
public SessionLoadedEvent(CySessionManager source, CySession session, String fileName)
source
- The CySessionManager
that is the source of this event.session
- The CySession
object that was just loaded.fileName
- the name of the file representing the session.public CySession getLoadedSession()
public String getLoadedFileName()
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.