|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbuoy.internal.EventLinkRecord
public class EventLinkRecord
This class stores a list of methods to be invoked whenever an Event of a particular class is generated by a Widget.
| Constructor Summary | |
|---|---|
EventLinkRecord(java.lang.Class eventType)
Create an EventLinkRecord for storing links for a particular event class. |
|
| Method Summary | |
|---|---|
void |
addLink(java.lang.Object target,
java.lang.reflect.Method method)
Add a new target to be notified of events of this type. |
void |
dispatchEvent(java.lang.Object event)
Send an event to every target which has been added to this record. |
java.lang.Class |
getEventType()
Get the event class for this record. |
void |
removeLink(java.lang.Object target)
Remove an object from the list of targets to be notified of events of this type. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventLinkRecord(java.lang.Class eventType)
| Method Detail |
|---|
public java.lang.Class getEventType()
public void addLink(java.lang.Object target,
java.lang.reflect.Method method)
target - the target object to be notified of eventsmethod - the method to be invoked on the target when events occurpublic void removeLink(java.lang.Object target)
target - the target object to removepublic void dispatchEvent(java.lang.Object event)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||