|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject y.module.ModuleEvent
public class ModuleEvent
Event object used by YModule
to notify ModuleListener
instances of the current state of the running module.
ModuleListener
,
YModule.addModuleListener(ModuleListener)
,
Serialized FormField Summary | |
---|---|
static short |
TYPE_MODULE_DISPOSED
Constant used for events that are fired
after the module's YModule.dispose() method ran (even if it got
interrupted by an exception). |
static short |
TYPE_MODULE_EXCEPTION_THROWN
Constant used for events that are fired
if the module threw an Exception or Throwable. |
static short |
TYPE_MODULE_INITIALIZING
Constant used for events that are fired
before the module's YModule.init() method is invoked. |
static short |
TYPE_MODULE_MAIN_RUN_FINISHED
Constant used for events that are fired
after the module's YModule.run() method has been invoked. |
static short |
TYPE_MODULE_MAIN_RUN_STARTING
Constant used for events that are fired
before the module's YModule.run() method is invoked. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
ModuleEvent(YModule source,
short type)
Creates a new instance of ModuleEvent with given type. |
|
ModuleEvent(YModule source,
java.lang.Throwable t)
Creates a new instance of ModuleEvent with type TYPE_MODULE_EXCEPTION_THROWN
using the given Throwable. |
Method Summary | |
---|---|
short |
getEventType()
Returns the type of the event. |
YModule |
getModule()
Returns the module which fired the event. |
java.lang.Throwable |
getThrowable()
Returns the associated Throwable if the type of this instance
is TYPE_MODULE_EXCEPTION_THROWN . |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final short TYPE_MODULE_INITIALIZING
events
that are fired
before the module's YModule.init()
method is invoked.
public static final short TYPE_MODULE_MAIN_RUN_STARTING
events
that are fired
before the module's YModule.run()
method is invoked.
public static final short TYPE_MODULE_MAIN_RUN_FINISHED
events
that are fired
after the module's YModule.run()
method has been invoked.
public static final short TYPE_MODULE_EXCEPTION_THROWN
events
that are fired
if the module threw an Exception or Throwable.
public static final short TYPE_MODULE_DISPOSED
events
that are fired
after the module's YModule.dispose()
method ran (even if it got
interrupted by an exception).
Constructor Detail |
---|
public ModuleEvent(YModule source, java.lang.Throwable t)
TYPE_MODULE_EXCEPTION_THROWN
using the given Throwable.
TYPE_MODULE_EXCEPTION_THROWN
public ModuleEvent(YModule source, short type)
TYPE_MODULE_INITIALIZING
,
TYPE_MODULE_MAIN_RUN_STARTING
,
TYPE_MODULE_MAIN_RUN_FINISHED
,
TYPE_MODULE_DISPOSED
Method Detail |
---|
public YModule getModule()
public short getEventType()
TYPE_MODULE_INITIALIZING
,
TYPE_MODULE_MAIN_RUN_STARTING
,
TYPE_MODULE_MAIN_RUN_FINISHED
,
TYPE_MODULE_DISPOSED
,
TYPE_MODULE_EXCEPTION_THROWN
public java.lang.Throwable getThrowable()
Throwable
if the type of this instance
is TYPE_MODULE_EXCEPTION_THROWN
.
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |