|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttwaver.event.Listener<E>
E
- 事件类型public class Listener<E extends Event>
监听器
Constructor Summary | |
---|---|
Listener()
|
Method Summary | |
---|---|
boolean |
beforeEvent(E event)
事件发生前,返回false表示中断事件,用于操作前的检测 |
void |
onEvent(E event)
事件发生时回调 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Listener()
Method Detail |
---|
public boolean beforeEvent(E event)
IListener
beforeEvent
in interface IListener<E extends Event>
event
- 事件
public void onEvent(E event)
IListener
onEvent
in interface IListener<E extends Event>
event
- 事件
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |