cz.cuni.amis.pogamut.base.communication.worldview.listener.annotation
Annotation Type ObjectListener


@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface ObjectListener

Used by AnnotationListenerRegistrator to register level D listener (IWorldView#addObjectListener(cz.cuni.amis.pogamut.base.communication.worldview.object.WorldObjectId, cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObjectListener) for the annotated method. The annotated method must have 1 parameter of IWorldObjectEvent.

The listeners are created by calling AnnotationListenerRegistrator.addListeners() and removed by calling AnnotationListenerRegistrator.removeListeners().


Required Element Summary
 java.lang.Class<? extends WorldObjectId> idClass
          Class implementing WorldObjectId, the class must have a constructor with 1 String parameter.
 java.lang.String objectId
          Id of the object you want to listen to.
 

Element Detail

idClass

public abstract java.lang.Class<? extends WorldObjectId> idClass
Class implementing WorldObjectId, the class must have a constructor with 1 String parameter.

Returns:

objectId

public abstract java.lang.String objectId
Id of the object you want to listen to.

Returns:
See Also:
IWorldView#addObjectListener(cz.cuni.amis.pogamut.base.communication.worldview.object.WorldObjectId, cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObjectListener)