Package com.kheops.jmap.client.tools
Class EditionEventDispatcher
java.lang.Object
com.kheops.jmap.client.tools.EditionEventDispatcher
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(EditionEventListener listener) Added the specified listener to the edition listeners list.voiddestroy()Clears all layer listeners managed by the dispatcher.protected final EditionEventListener[]booleanvoidremoveListener(EditionEventListener listener) Removes the specified listener from the listeners list.voidvisit(EditionEvent event) Fires the specifiedEditionEventto all layer listeners.voidvisit(FormEditionEvent event) Fires the specifiedFormEditionEventto all layer listeners.
-
Field Details
-
listeners
-
-
Constructor Details
-
EditionEventDispatcher
public EditionEventDispatcher()
-
-
Method Details
-
hasListeners
public boolean hasListeners() -
addListener
Added the specified listener to the edition listeners list.- Parameters:
listener- the listener to add.
-
removeListener
Removes the specified listener from the listeners list.- Parameters:
listener- the listener to remove.
-
getListeners
-
visit
Fires the specifiedEditionEventto all layer listeners.- Parameters:
event- the event to be fired.
-
visit
Fires the specifiedFormEditionEventto all layer listeners.- Parameters:
event- the event to be fired.
-
destroy
public void destroy()Clears all layer listeners managed by the dispatcher.
-