|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jrummikub.util.Event
public class Event
Simple parameterless event generator
Field Summary | |
---|---|
private java.util.HashSet<IListener> |
listeners
|
Constructor Summary | |
---|---|
Event()
|
Method Summary | |
---|---|
Connection |
add(IListener listener)
Start to publish all events to a given listener |
void |
emit()
Generate a single event |
void |
remove(IListener listener)
Stop publishing events to a given listener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.HashSet<IListener> listeners
Constructor Detail |
---|
public Event()
Method Detail |
---|
public Connection add(IListener listener)
IEvent
add
in interface IEvent
listener
- target listener
public void remove(IListener listener)
IEvent
remove
in interface IEvent
listener
- target listenerpublic void emit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |