|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objectwave.event.SimplePacketSupport
This class facilitates the use of Event handling. To use this class requires a couple of steps. First, the using class must implement the Dispatcher interface. This is how the event is actually delivered. Next, a reference to this class must be placed in the using class. Third, the using class needs to add the addListener and removeListener methods. This, hopefully, makes it real easy to add event handling to a class. This uses the DoulbeDispatch pattern to achieve event dispatching. NOTE: Events will NOT be sent to the originator of the event.
Constructor Summary | |
SimplePacketSupport(Dispatcher source)
|
Method Summary | |
void |
addEventListener(java.util.EventListener item)
|
void |
addPacketListener(java.util.EventListener item)
Deprecated. |
void |
fireEvent(java.util.EventObject evt)
Thread safe dispatching of an event. |
Dispatcher |
getSource()
|
void |
removeEventListener(java.util.EventListener item)
|
void |
removePacketListener(java.util.EventListener item)
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimplePacketSupport(Dispatcher source)
Method Detail |
public void addPacketListener(java.util.EventListener item)
public void addEventListener(java.util.EventListener item)
public void fireEvent(java.util.EventObject evt)
public Dispatcher getSource()
public void removePacketListener(java.util.EventListener item)
public void removeEventListener(java.util.EventListener item)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |