javax.rad.util
Class RuntimeEventHandler<L>
java.lang.Object
javax.rad.util.EventHandler<L>
javax.rad.util.RuntimeEventHandler<L>
- Type Parameters:
L - the Listener type
- Direct Known Subclasses:
- ActionHandler, CallableHandler, ComponentHandler, DataSourceHandler, DialogHandler, ErrorHandler, FocusHandler, KeyHandler, MouseHandler, PopupMenuHandler, RemoteApplicationHandler, ResourceHandler, TabsetHandler, WindowHandler, WorkScreenHandler
public class RuntimeEventHandler<L>
- extends EventHandler<L>
The RuntimeEventHandler is a EventHandler that
handles Events, and informs the ExceptionHandler.
|
Constructor Summary |
RuntimeEventHandler(java.lang.Class<L> pListenerType,
java.lang.Class... pParameterTypes)
Constructs a new EventHandler, the listener type may only have 1 method. |
RuntimeEventHandler(java.lang.Class<L> pListenerType,
java.lang.String pListenerMethodName,
java.lang.Class... pParameterTypes)
Constructs a new EventHandler. |
|
Method Summary |
java.lang.Object |
dispatchEvent(java.lang.Object... pEventParameter)
Dispatches the given events to all listeners. |
| Methods inherited from class javax.rad.util.EventHandler |
addHandler, addListener, addListener, addListener, addListener, addListener, createListener, getCurrentDispatchObject, getDefaultListener, getLastDispatchedObject, getListener, getListenerCount, getListeners, getWrappedException, getWrappedExceptionAllowSilent, isDispatchable, isDispatchable, isDispatchEventsEnabled, removeAllListeners, removeHandler, removeListener, removeListener, removeListener, setDefaultListener, setDefaultListener, setDispatchEventsEnabled |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RuntimeEventHandler
public RuntimeEventHandler(java.lang.Class<L> pListenerType,
java.lang.Class... pParameterTypes)
- Constructs a new EventHandler, the listener type may only have 1 method.
- Parameters:
pListenerType - the listener type interface.pParameterTypes - parameter types to check additional.
RuntimeEventHandler
public RuntimeEventHandler(java.lang.Class<L> pListenerType,
java.lang.String pListenerMethodName,
java.lang.Class... pParameterTypes)
- Constructs a new EventHandler.
- Parameters:
pListenerType - the listener type interface.pListenerMethodName - the method to be called inside the interface.pParameterTypes - parameter types to check additional.
dispatchEvent
public java.lang.Object dispatchEvent(java.lang.Object... pEventParameter)
- Dispatches the given events to all listeners.
- Overrides:
dispatchEvent in class EventHandler<L>
- Parameters:
pEventParameter - the event parameter.
- Returns:
- the return value of the deaultListener, if it is called, or null if dispatching is disabled or
no listeners were called
Copyright © 2009 SIB Visions GmbH. All Rights Reserved.