public class ViewEventDispatcher
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Vector<ViewEventListener> |
listeners |
| Constructor and Description |
|---|
ViewEventDispatcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ViewEventListener listener)
Adds a listener to the list of event listeners.
|
void |
destroy()
Clears all view listeners managed by the dispatcher.
|
protected ViewEventListener[] |
getListeners() |
void |
removeListener(ViewEventListener listener)
Removes a listener from the list of event listeners.
|
void |
visit(ViewChangedEvent event)
Fires the specified
ViewChangedEvent to all view listeners. |
void |
visit(ViewPopupMenuShowingEvent event)
Fires the specified
ViewPopupMenuShowingEvent to all view listeners. |
void |
visit(ViewReadyEvent event)
Fires the specified
ViewReadyEvent to all view listeners. |
void |
visit(ViewRedrawEvent event)
Fires the specified
ViewRedrawEvent to all view listeners. |
void |
visit(ViewRepaintEvent event)
Fires the specified
ViewRepaintEvent to all view listeners. |
void |
visit(ViewStaticElementEvent event)
Fires the specified
ViewStaticElementEvent to all view listeners. |
void |
visit(ViewToolChangedEvent event)
Fires the specified
ViewToolChangedEvent to all view listeners. |
protected final java.util.Vector<ViewEventListener> listeners
public void addListener(ViewEventListener listener)
listener - the event listener to addpublic void removeListener(ViewEventListener listener)
listener - the event listener to removeprotected final ViewEventListener[] getListeners()
public void visit(ViewToolChangedEvent event)
ViewToolChangedEvent to all view listeners.event - the event to be fired.public void visit(ViewPopupMenuShowingEvent event)
ViewPopupMenuShowingEvent to all view listeners.event - the event to be fired.public void visit(ViewStaticElementEvent event)
ViewStaticElementEvent to all view listeners.event - the event to be fired.public void visit(ViewChangedEvent event)
ViewChangedEvent to all view listeners.event - the event to be fired.public void visit(ViewRepaintEvent event)
ViewRepaintEvent to all view listeners.event - the event to be fired.public void visit(ViewRedrawEvent event)
ViewRedrawEvent to all view listeners.event - the event to be fired.public void visit(ViewReadyEvent event)
ViewReadyEvent to all view listeners.event - the event to be fired.public void destroy()