javax.rad.model.event
Class ModelEventHandler<L>

java.lang.Object
  extended by javax.rad.util.EventHandler<L>
      extended by javax.rad.model.event.ModelEventHandler<L>
Type Parameters:
L - the Listener type
Direct Known Subclasses:
DataBookHandler, DataRowHandler

public class ModelEventHandler<L>
extends EventHandler<L>

The ModelEventHandler is a EventHandler that handles Events, and throws ModelExceptions.


Constructor Summary
ModelEventHandler(Class<L> pListenerType)
          Constructs a new EventHandler, the listener type may only have 1 method.
 
Method Summary
 Object dispatchEvent(Object... pEventParameter)
          Dispatches the given events to all listeners.
 
Methods inherited from class javax.rad.util.EventHandler
addListener, addListener, addListener, addListener, createListener, getCurrentDispatchObject, getDefaultListener, getLastDispatchedObject, getListener, getListenerCount, getListeners, getWrappedException, getWrappedExceptionAllowSilent, isDispatchEventsEnabled, removeAllListeners, removeListener, removeListener, removeListener, setDefaultListener, setDefaultListener, setDispatchEventsEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelEventHandler

public ModelEventHandler(Class<L> pListenerType)
Constructs a new EventHandler, the listener type may only have 1 method.

Parameters:
pListenerType - the listener type interface.
Method Detail

dispatchEvent

public Object dispatchEvent(Object... pEventParameter)
                     throws ModelException
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
Throws:
ModelException


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.