|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jrummikub.util.Event2<T1,T2>
T1
- type of the first event parameterT2
- type of the second event parameterpublic class Event2<T1,T2>
Simple single parameter event generator
Constructor Summary | |
---|---|
Event2()
|
Method Summary | |
---|---|
Connection |
add(IListener2<T1,T2> listener)
Start to publish all events to a given listener |
void |
emit(T1 value1,
T2 value2)
Generate a single event |
void |
remove(IListener2<T1,T2> 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 |
Constructor Detail |
---|
public Event2()
Method Detail |
---|
public Connection add(IListener2<T1,T2> listener)
IEvent2
add
in interface IEvent2<T1,T2>
listener
- target listener
public void remove(IListener2<T1,T2> listener)
IEvent2
remove
in interface IEvent2<T1,T2>
listener
- target listenerpublic void emit(T1 value1, T2 value2)
value1
- the first event parametervalue2
- the second event parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |