public class TLcyLucyEnvEvent extends EventObject
ILcyLucyEnv.setLucyEnvState(int)
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
CLOSED
Indicates that the
ILcyLucyEnv has finished the closing
operation. |
static int |
CLOSING
Indicates that the
ILcyLucyEnv is going to close. |
static int |
DISPOSED
Indicates that the
ILcyLucyEnv is disposed. |
static int |
DISPOSING
Indicates that the
ILcyLucyEnv is disposing. |
static int |
INITIALIZED
Indicates that the
ILcyLucyEnv has finished initializing. |
static int |
INITIALIZING
Indicates that the
ILcyLucyEnv is initializing. |
source
Constructor and Description |
---|
TLcyLucyEnvEvent(ILcyLucyEnv aLucyEnv,
int aID)
Creates a new
TLcyLucyEnvEvent for the given ILcyLucyEnv and ID. |
TLcyLucyEnvEvent(ILcyLucyEnv aLucyEnv,
int aID,
Runnable aRevokeVetoRunnable)
Creates a new
TLcyLucyEnvEvent for the given ILcyLucyEnv and ID, with the ability to revoke a
veto. |
Modifier and Type | Method and Description |
---|---|
boolean |
canRevokeVeto()
Returns true if a veto can be revoked.
|
int |
getID()
Returns the ID that describes the type of the event.
|
ILcyLucyEnv |
getLucyEnv()
Returns the
ILcyLucyEnv that originated this event. |
void |
revokeVeto()
Revokes the veto, re-triggering the action that was revoked.
|
getSource, toString
public static final int INITIALIZING
ILcyLucyEnv
is initializing.public static final int INITIALIZED
ILcyLucyEnv
has finished initializing. All
resources are created and the addons are plugged.public static final int CLOSING
ILcyLucyEnv
is going to close.public static final int CLOSED
ILcyLucyEnv
has finished the closing
operation.public static final int DISPOSING
ILcyLucyEnv
is disposing.public static final int DISPOSED
ILcyLucyEnv
is disposed.public TLcyLucyEnvEvent(ILcyLucyEnv aLucyEnv, int aID)
TLcyLucyEnvEvent
for the given ILcyLucyEnv
and ID.aLucyEnv
- The ILcyLucyEnv
that originates this event.aID
- The ID describing the type of the event.public TLcyLucyEnvEvent(ILcyLucyEnv aLucyEnv, int aID, Runnable aRevokeVetoRunnable)
TLcyLucyEnvEvent
for the given ILcyLucyEnv
and ID, with the ability to revoke a
veto.aLucyEnv
- The ILcyLucyEnv
that originates this event.aID
- The ID describing the type of the event.aRevokeVetoRunnable
- A runnable to revoke the veto, or null. It typically
re-triggers the action that lead to the TLcyVetoException
. For example, if
exiting the application was vetoed, this action tries to exit once more.
Refer to ILcyLucyEnv.setLucyEnvState(int)
for more information.public ILcyLucyEnv getLucyEnv()
ILcyLucyEnv
that originated this event.ILcyLucyEnv
that originated this event.public int getID()
public void revokeVeto()
()
public boolean canRevokeVeto()
TLcyVetoException
you threw. This is
especially useful if you need to perform asynchronous work upon a state change, such as saving the workspace before
exiting the application.
Refer to ILcyLucyEnv.setLucyEnvState(int)
for more information.TLcyVetoException
revokeVeto()