Package com.luciad.lucy
Class TLcyLucyEnvEvent
java.lang.Object
java.util.EventObject
com.luciad.lucy.TLcyLucyEnvEvent
- All Implemented Interfaces:
Serializable
Event describing significant state changes in the Lucy backend.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Indicates that theILcyLucyEnv
has finished the closing operation.static final int
Indicates that theILcyLucyEnv
is going to close.static final int
Indicates that theILcyLucyEnv
is disposed.static final int
Indicates that theILcyLucyEnv
is disposing.static final int
Indicates that theILcyLucyEnv
has finished initializing.static final int
Indicates that theILcyLucyEnv
is initializing.Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionTLcyLucyEnvEvent
(ILcyLucyEnv aLucyEnv, int aID) Creates a newTLcyLucyEnvEvent
for the givenILcyLucyEnv
and ID.TLcyLucyEnvEvent
(ILcyLucyEnv aLucyEnv, int aID, Runnable aRevokeVetoRunnable) Creates a newTLcyLucyEnvEvent
for the givenILcyLucyEnv
and ID, with the ability to revoke a veto. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if a veto can be revoked.int
getID()
Returns the ID that describes the type of the event.Returns theILcyLucyEnv
that originated this event.void
Revokes the veto, re-triggering the action that was revoked.Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
INITIALIZING
public static final int INITIALIZINGIndicates that theILcyLucyEnv
is initializing.- See Also:
-
INITIALIZED
public static final int INITIALIZEDIndicates that theILcyLucyEnv
has finished initializing. All resources are created and the addons are plugged.- See Also:
-
CLOSING
public static final int CLOSINGIndicates that theILcyLucyEnv
is going to close.- See Also:
-
CLOSED
public static final int CLOSEDIndicates that theILcyLucyEnv
has finished the closing operation.- See Also:
-
DISPOSING
public static final int DISPOSINGIndicates that theILcyLucyEnv
is disposing.- See Also:
-
DISPOSED
public static final int DISPOSEDIndicates that theILcyLucyEnv
is disposed.- See Also:
-
-
Constructor Details
-
TLcyLucyEnvEvent
Creates a newTLcyLucyEnvEvent
for the givenILcyLucyEnv
and ID.- Parameters:
aLucyEnv
- TheILcyLucyEnv
that originates this event.aID
- The ID describing the type of the event.
-
TLcyLucyEnvEvent
Creates a newTLcyLucyEnvEvent
for the givenILcyLucyEnv
and ID, with the ability to revoke a veto.- Parameters:
aLucyEnv
- TheILcyLucyEnv
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 theTLcyVetoException
. For example, if exiting the application was vetoed, this action tries to exit once more. Refer toILcyLucyEnv.setLucyEnvState(int)
for more information.- Since:
- 2022.1
-
-
Method Details
-
getLucyEnv
Returns theILcyLucyEnv
that originated this event.- Returns:
- the
ILcyLucyEnv
that originated this event.
-
getID
public int getID()Returns the ID that describes the type of the event.- Returns:
- the ID that describes the type of the event.
-
revokeVeto
public void revokeVeto()Revokes the veto, re-triggering the action that was revoked.- Since:
- 2022.1
- See Also:
-
canRevokeVeto
public boolean canRevokeVeto()Returns true if a veto can be revoked. If true, you can revoke aTLcyVetoException
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 toILcyLucyEnv.setLucyEnvState(int)
for more information.- Returns:
- true if #revokeVeto can be called after throwing a
TLcyVetoException
- Since:
- 2022.1
- See Also:
-