|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.j3d.threeD.ui.event.EventHandler
public class EventHandler
An EventHandler object provides an interface for comunication between EventGenerators and EventListeners.
| Constructor Summary | |
|---|---|
EventHandler()
Constructs a new EventHandler object with no listeners. |
|
| Method Summary | |
|---|---|
void |
addListener(EventListener listener)
Adds the specified EventListener to this EventHandler. |
void |
fireEvent(Event event)
Notifies all current EventListeners that an event has been fired. |
EventListener |
getListener(int index)
Returns the specified EventListener. |
int |
getTotalListeners()
Returns the number of EventListeners currently registered with this EventHandler. |
void |
removeListener(EventListener listener)
Removes the specified EventListener from this EventHandler. |
void |
removeListener(int index)
Removes the specified EventListener from this EventHandler. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventHandler()
| Method Detail |
|---|
public void addListener(EventListener listener)
public void removeListener(int index)
public void removeListener(EventListener listener)
public EventListener getListener(int index)
public int getTotalListeners()
public void fireEvent(Event event)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||