java.lang.Object | |
↳ | com.pnfsoftware.jeb.util.events.deprecated_v2.impl.EventSource2<E> |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
protected List<IEventListener2<E>> | listeners | ||||||||||
protected IEventSource2<E, IEvent2<E>> | parentSource |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
EventSource2() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
addListener(IEventListener2<E> listener)
Register a listener.
| ||||||||||
int |
countListeners()
Get the numbers of objects listening to this event source.
| ||||||||||
IEventSource2<E, IEvent2<E>> |
getParentSource()
Get the parent source.
| ||||||||||
void |
notifyListeners(IEvent2<E> e)
Notify listeners that an event has occurred.
| ||||||||||
boolean |
removeListener(IEventListener2<E> listener)
Unregister a listener.
| ||||||||||
void | setParentSource(IEventSource2<E, IEvent2<E>> parentSource) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
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 |
---|