Package com.kheops.jmap.client.tools
Class EditionEventDispatcher
java.lang.Object
com.kheops.jmap.client.tools.EditionEventDispatcher
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(EditionEventListener listener) Added the specified listener to the edition listeners list.void
destroy()
Clears all layer listeners managed by the dispatcher.protected final EditionEventListener[]
boolean
void
removeListener
(EditionEventListener listener) Removes the specified listener from the listeners list.void
visit
(EditionEvent event) Fires the specifiedEditionEvent
to all layer listeners.void
visit
(FormEditionEvent event) Fires the specifiedFormEditionEvent
to 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 specifiedEditionEvent
to all layer listeners.- Parameters:
event
- the event to be fired.
-
visit
Fires the specifiedFormEditionEvent
to all layer listeners.- Parameters:
event
- the event to be fired.
-
destroy
public void destroy()Clears all layer listeners managed by the dispatcher.
-