|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectunc.cdva.events.SingleEventSource<T>
public class SingleEventSource<T>
Utility class that let's you define a class that can be the source for exactly one type of event.
| Field Summary | |
|---|---|
protected java.util.Vector<T> |
listeners
Listeners list |
| Constructor Summary | |
|---|---|
SingleEventSource()
Constructor which creates a vector to store listeners for the game. |
|
| Method Summary | |
|---|---|
void |
addListener(T l)
Adds a new listener to the listeners variable of this class. |
void |
removeListener(T l)
Removes a listener from the listeners variable of this class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Vector<T> listeners
| Constructor Detail |
|---|
public SingleEventSource()
| Method Detail |
|---|
public void addListener(T l)
l - The new listener to addpublic void removeListener(T l)
l - listener to be removed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||