T - the event source typeE - the event 'data' typepublic abstract class EventDispatcher<E extends EventListener,T>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected LList<E> |
mListeners
The list of listeners.
|
| Constructor and Description |
|---|
EventDispatcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(E listener)
Bind listener for event notifications.
|
void |
clear()
Remove all listeners.
|
void |
fire(Event event,
T data) |
abstract void |
tell(E listener,
Event event,
T data)
Tell listeners whats going on.
|
void |
unbind(E listener)
Remove listener.
|
protected LList<E extends EventListener> mListeners
public void bind(E listener)
public void unbind(E listener)
public abstract void tell(E listener, Event event, T data)
event - the eventdata - the datapublic void clear()