AbstractEvent Class
- public abstract class AbstractEvent
extends UIEvent
This is a base class event used by more concrete events to provide common functionality to
notify interested listeners.
To fire an event, get the event manager using the static method getEventManager
and call fireEvent
on it.
-
Hierarchy
-
Object
UIEvent
AbstractEvent
-
All Implemented Interfaces
-
Serializable
-
Direct Known Subclasses
-
PortletEvent
Methods from com.bea.netuix.nf.events.UIEvent |
addGlobalListener, getGlobalListeners, removeGlobalListener |
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractEvent
public AbstractEvent()
addGlobalListener(BackingContext, AbstractEventListener, Class) Method
public static void addGlobalListener(BackingContext
backingContext,
AbstractEventListener
listener,
Class
clazz)
Register a listener to be interested in this event.
Parameters
-
backingContext
- any backing context.
-
listener
- object implementing AbstractEventListener
-
clazz
- the class name of the event
getEventManager(Object, BackingContext, Class) Method
public static AbstractEvent.Manager
getEventManager(Object
sourceObject,
BackingContext
backingContext,
Class
clazz)
Get the event manager from a backing context.
Parameters
-
sourceObject
- the instance of the class calling this method
-
backingContext
- the backing context to find the manager in
-
clazz
- the class name of the event
removeGlobalListener(BackingContext, AbstractEventListener, Class) Method
public static void removeGlobalListener(BackingContext
backingContext,
AbstractEventListener
listener,
Class
clazz)
Unregister a listener for this event.
Parameters
-
backingContext
- any backing context.
-
listener
- object implementing AbstractEventListener
-
clazz
- the class name of the event