|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.retek.commons.gui.event.REventAdaptor
This class is an Rcom Event adaptor to simplify the usage of REventListeners and Rcom Events. Other classes should declare and use the adaptor in order to send Rcom events (it is simply easier folks ;-)). This class is not thread-safe. If used across multiple threads, first obtain a lock on the object holding the adaptor before using.
Currently, an ArrayList is used to store the REventListeners. This is because only a handful of listeners are usually assigned to any one thing. In the future, if many REventListeners are being assigned to the same component, then the ArrayList should be converted to a plain array for performance reasons.
Retek Inc. Copyright (c) 2002
Constructor Summary | |
REventAdaptor()
Returns new REventAdaptor object. |
Method Summary | |
void |
addREventListener(REventListener listener)
Adds a REventListener to the REventListener list. |
void |
notifyREventListeners(RActionEvent event)
Notifies all registered REventListeners that a RActionEvent has occured. |
void |
notifyREventListeners(RErrorEvent event)
Notifies all registered REventListeners that a RErrorEvent has occured. |
void |
removeAllREventListeners()
Removes all REventListeners from the REventListener list. |
void |
removeREventListener(REventListener listener)
Removes a REventListener from the REventListener list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public REventAdaptor()
Method Detail |
public void addREventListener(REventListener listener)
listener
- The REventListener to add.public void removeREventListener(REventListener listener)
listener
- The REventListener to add.public void removeAllREventListeners()
public void notifyREventListeners(RActionEvent event)
event
- The RActionEvent to notify Rcom Event Listeners with.public void notifyREventListeners(RErrorEvent event)
event
- The RErrorEvent to notify REventListeners with.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |