public final class CyShutdownEvent extends AbstractCyEvent<Object>
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 and Description |
---|
CyShutdownEvent(Object source)
Constructor.
|
CyShutdownEvent(Object source,
boolean force)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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
|
getListenerClass, getSource
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.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()
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.