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
FieldsModifier and TypeFieldDescriptionstatic final intPart of the event ID when the ModelContainer contents changed.static final intPart of the event ID when an object has been added to the container.static final intPart of the event ID when an object has been deleted from the container.Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionTLcdModelContainerEvent(ILcdModelContainer aModelContainer, int aID, ILcdModel aModel) An event that indicates that aModelContainer has changed in aID manner, which involves aModel. -
Method Summary
Modifier and TypeMethodDescriptionvoiddispatch(EventListener listener) Sends thisILcdDispatchableEventto the given listener.intgetID()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
paramStringMethods 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:ILcdDispatchableEventSends thisILcdDispatchableEventto the given listener.- Specified by:
dispatchin interfaceILcdDispatchableEvent- Specified by:
dispatchin 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:
toStringin classALcdDispatchableEvent
-