Package com.luciad.lucy
Class TLcyAddOnContainerEvent
java.lang.Object
java.util.EventObject
com.luciad.lucy.TLcyAddOnContainerEvent
- All Implemented Interfaces:
Serializable
Event thrown when the addon container has changed.
It contains
- an ID describing the type of event
- the addon with respect to the event
- the lucy env that is the originator of the event
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Indicates an addon has been added.static final int
Indicates an addon is going to be added.static final int
Indicates an addon has been removed.static final int
Indicates an addon is going to be removed.Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionTLcyAddOnContainerEvent
(ILcyLucyEnv aSource, int aID, ALcyAddOn aAddOn) Creates a new addon container event object with the given properties. -
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
ADDON_ADDING
public static final int ADDON_ADDINGIndicates an addon is going to be added. Use getAddOn to retrieve it.- See Also:
-
ADDON_ADDED
public static final int ADDON_ADDEDIndicates an addon has been added. Use getAddOn to retrieve it.- See Also:
-
ADDON_REMOVING
public static final int ADDON_REMOVINGIndicates an addon is going to be removed. Use getAddOn to retrieve it.- See Also:
-
ADDON_REMOVED
public static final int ADDON_REMOVEDIndicates an addon has been removed. Use getAddOn to retrieve it.- See Also:
-
-
Constructor Details
-
TLcyAddOnContainerEvent
Creates a new addon container event object with the given properties.- Parameters:
aSource
- The originator of the event.aID
- The type of event: ADDON_ADDING, ADDON_ADDED, ADDON_REMOVING or ADDON_REMOVED.aAddOn
- The addon with respect to the event.
-
-
Method Details
-
getID
public int getID()Returns the id of this event: ADDON_ADDING, ADDON_ADDED, ADDON_REMOVING or ADDON_REMOVED.- Returns:
- the id of this event.
-
getAddOn
Returns the addon with respect to this event.- Returns:
- the addon with respect to this event.
-
getLucyEnv
Returns the ILcyLucyEnv who is the originator of this event.- Returns:
- the ILcyLucyEnv who is the originator of this event.
-