U - The type of EventListener subclasspublic class NFEBasicEventDispatcher<U extends java.util.EventListener> extends java.lang.Object implements NFEEventDispatcher<U>
| Constructor and Description |
|---|
NFEBasicEventDispatcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispatch(NFEModelEvent event, java.util.Collection<U> listeners, java.lang.String listenerMethodName)
Notifies about an event to a collection of listeners by invoking the given method name.
|
boolean |
isStopDispatchingAtFirstError()
Tells whether the dispatcher stops firing events when an error ocurrs
|
void |
setStopDispatchingAtFirstError(boolean stopDispatchingAtFirstError)
Sets the dispatcher to stop firing events if there is an error.
|
public void dispatch(NFEModelEvent event, java.util.Collection<U> listeners, java.lang.String listenerMethodName) throws NFEEventDispatchException
NFEEventDispatcherdispatch in interface NFEEventDispatcher<U extends java.util.EventListener>event - an NFEModelEvent (or subclass) instancelisteners - a collection of listeners to be notifiedlistenerMethodName - the method name to be invoked on the listenersNFEEventDispatchExceptionpublic void setStopDispatchingAtFirstError(boolean stopDispatchingAtFirstError)
NFEEventDispatchersetStopDispatchingAtFirstError in interface NFEEventDispatcher<U extends java.util.EventListener>public boolean isStopDispatchingAtFirstError()
NFEEventDispatcherisStopDispatchingAtFirstError in interface NFEEventDispatcher<U extends java.util.EventListener>