Package com.luciad.model
Class TLcdModelContainerEvent
java.lang.Object
java.util.EventObject
com.luciad.util.ALcdDispatchableEvent
com.luciad.model.TLcdModelContainerEvent
- All Implemented Interfaces:
ILcdDispatchableEvent
,Serializable
TLcdModelContainerEvent
implements dispatchable events
on a ILcdModelContainer
.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Part of the event ID when the ModelContainer contents changed.static final int
Part of the event ID when an object has been added to the container.static final int
Part of the event ID when an object has been deleted from the container.Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionTLcdModelContainerEvent
(ILcdModelContainer aModelContainer, int aID, ILcdModel aModel) An event that indicates that aModelContainer has changed in aID manner, which involves aModel. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispatch
(EventListener listener) Sends thisILcdDispatchableEvent
to the given listener.int
getID()
Returns the ID indicating the type of event.getModel()
Returns the model that caused the change to the model container.Returns the model container that has changed.toString()
Methods inherited from class com.luciad.util.ALcdDispatchableEvent
paramString
Methods inherited from class java.util.EventObject
getSource
-
Field Details
-
CONTENT_CHANGED
public static final int CONTENT_CHANGEDPart of the event ID when the ModelContainer contents changed.- See Also:
-
MODEL_ADDED
public static final int MODEL_ADDEDPart of the event ID when an object has been added to the container. Incorporates CONTENT_CHANGED.- See Also:
-
MODEL_REMOVED
public static final int MODEL_REMOVEDPart of the event ID when an object has been deleted from the container. Incorporates CONTENT_CHANGED.- See Also:
-
-
Constructor Details
-
TLcdModelContainerEvent
An event that indicates that aModelContainer has changed in aID manner, which involves aModel.- Parameters:
aModelContainer
- the model container that has changed.aID
- description of the change to the model container. Compare to CONTENT_CHANGED, MODEL_ADDED, MODEL_REMOVED.aModel
- the model which caused the change to the model container.
-
-
Method Details
-
dispatch
Description copied from interface:ILcdDispatchableEvent
Sends thisILcdDispatchableEvent
to the given listener.- Specified by:
dispatch
in interfaceILcdDispatchableEvent
- Specified by:
dispatch
in classALcdDispatchableEvent
- Parameters:
listener
- the listener that will receive thisILcdDispatchableEvent
.
-
getID
public int getID()Returns the ID indicating the type of event. Compare to CONTENT_CHANGED, MODEL_ADDED, MODEL_REMOVED.- Returns:
- the ID indicating the type of event.
-
getModel
Returns the model that caused the change to the model container.- Returns:
- the model that caused the change to the model container.
-
getModelContainer
Returns the model container that has changed.- Returns:
- the model container that has changed.
-
toString
- Overrides:
toString
in classALcdDispatchableEvent
-