|
Cytoscape 3.1.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cytoscape.event.AbstractCyEvent<Object>
org.cytoscape.application.events.CyShutdownEvent
public final class CyShutdownEvent
An event fired immediately before Cytoscape will be shutdown. This event provides methods for listeners processing this event to abort the shutdown. This event should only be fired synchronously to allow all listeners time to clean up.
Module: application-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>application-api</artifactId> </dependency>
Constructor Summary | |
---|---|
CyShutdownEvent(Object source)
Constructor. |
|
CyShutdownEvent(Object source,
boolean force)
Constructor. |
Method Summary | |
---|---|
void |
abortShutdown(String why)
A callback to the firing class that allows a listener to abort the shutdown. |
String |
abortShutdownReason()
Returns the reason that the application should not be shut down. |
boolean |
actuallyShutdown()
Returns true if no reason is provided to abort the shutdown and false if anyone processing this event wants to prevent shutdown. |
boolean |
forceShutdown()
Returns true if we want to force the shutdown without any user prompt |
Methods inherited from class org.cytoscape.event.AbstractCyEvent |
---|
getListenerClass, getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CyShutdownEvent(Object source, boolean force)
source
- The object firing this event.force
- If true, force the shutdown (no user prompt)public CyShutdownEvent(Object source)
source
- The object firing this event.Method Detail |
---|
public void abortShutdown(String why)
why
- A user comprehensible message describing why the shutdown
was aborted.public String abortShutdownReason()
public boolean actuallyShutdown()
public boolean forceShutdown()
|
Cytoscape 3.1.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |