| com.pnfsoftware.jeb.util.events.deprecated_v2.IEventSource2<E, T extends com.pnfsoftware.jeb.util.events.deprecated_v2.IEvent2<E>> |
Known Indirect Subclasses
EventSource2<E>
|
Interface for objects generating events, with optional relaying to a parent source.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract void |
addListener(IEventListener2<E> listener)
Register a listener.
| ||||||||||
| abstract int |
countListeners()
Get the numbers of objects listening to this event source.
| ||||||||||
| abstract IEventSource2<E, T> |
getParentSource()
Get the parent source.
| ||||||||||
| abstract void |
notifyListeners(IEvent2<E> e)
Notify listeners that an event has occurred.
| ||||||||||
| abstract boolean |
removeListener(IEventListener2<E> listener)
Unregister a listener.
| ||||||||||
| abstract void |
setParentSource(IEventSource2<E, T> parentSource)
Set a parent source.
| ||||||||||
Register a listener. The implementor may allow duplicates.
| listener | a listener of events generated by this source |
|---|
Get the numbers of objects listening to this event source.
Get the parent source.
Notify listeners that an event has occurred.
| e | the event to be propagated |
|---|
Unregister a listener. If the implementor allows duplicates in addListener(), it should deal with those consistently.
| listener | the listener to be removed |
|---|
Set a parent source.
| parentSource | the optional parent source |
|---|