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
FieldsModifier and TypeFieldDescriptionstatic final intIndicates that theILcyLucyEnvhas finished the closing operation.static final intIndicates that theILcyLucyEnvis going to close.static final intIndicates that theILcyLucyEnvis disposed.static final intIndicates that theILcyLucyEnvis disposing.static final intIndicates that theILcyLucyEnvhas finished initializing.static final intIndicates that theILcyLucyEnvis initializing.Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionTLcyLucyEnvEvent(ILcyLucyEnv aLucyEnv, int aID) Creates a newTLcyLucyEnvEventfor the givenILcyLucyEnvand ID.TLcyLucyEnvEvent(ILcyLucyEnv aLucyEnv, int aID, Runnable aRevokeVetoRunnable) Creates a newTLcyLucyEnvEventfor the givenILcyLucyEnvand ID, with the ability to revoke a veto. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if a veto can be revoked.intgetID()Returns the ID that describes the type of the event.Returns theILcyLucyEnvthat originated this event.voidRevokes 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 theILcyLucyEnvis initializing.- See Also:
-
INITIALIZED
public static final int INITIALIZEDIndicates that theILcyLucyEnvhas finished initializing. All resources are created and the addons are plugged.- See Also:
-
CLOSING
public static final int CLOSINGIndicates that theILcyLucyEnvis going to close.- See Also:
-
CLOSED
public static final int CLOSEDIndicates that theILcyLucyEnvhas finished the closing operation.- See Also:
-
DISPOSING
public static final int DISPOSINGIndicates that theILcyLucyEnvis disposing.- See Also:
-
DISPOSED
public static final int DISPOSEDIndicates that theILcyLucyEnvis disposed.- See Also:
-
-
Constructor Details
-
TLcyLucyEnvEvent
Creates a newTLcyLucyEnvEventfor the givenILcyLucyEnvand ID.- Parameters:
aLucyEnv- TheILcyLucyEnvthat originates this event.aID- The ID describing the type of the event.
-
TLcyLucyEnvEvent
Creates a newTLcyLucyEnvEventfor the givenILcyLucyEnvand ID, with the ability to revoke a veto.- Parameters:
aLucyEnv- TheILcyLucyEnvthat 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 theILcyLucyEnvthat originated this event.- Returns:
- the
ILcyLucyEnvthat 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 aTLcyVetoExceptionyou 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:
-