public class WikiEngineEvent extends WikiEvent
WikiEvent
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
INITIALIZED
Indicates a WikiEngine initialized event, fired after the
wiki service is fully available.
|
static int |
INITIALIZING
Indicates a WikiEngine initialization event, fired as the
wiki service is being initialized (in progress).
|
static int |
SHUTDOWN
Indicates a WikiEngine closing event, fired as a signal that
the wiki service is shutting down.
|
static int |
STOPPED
Indicates a WikiEngine stopped event, fired after halting the wiki service.
|
Constructor and Description |
---|
WikiEngineEvent(java.lang.Object eventSource,
int type)
Constructs an instance of this event.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
eventName()
Returns a textual representation of the event type.
|
WikiEngine |
getEngine()
Returns the WikiEngine that spawned this event.
|
java.lang.String |
getTypeDescription()
Returns a human-readable description of the event type.
|
WikiEngine |
getWikiEngine()
Deprecated.
use
getEngine() instead. |
static boolean |
isValidType(int type)
Returns
true if the int value is a WikiPageEvent type. |
protected void |
setType(int type)
Sets the type of this event.
|
public static final int INITIALIZING
public static final int INITIALIZED
public static final int SHUTDOWN
public static final int STOPPED
public WikiEngineEvent(java.lang.Object eventSource, int type)
eventSource
- the Object that is the source of the event,
which must be the WikiEngine. If it is not, this
method thows a ClassCastExceptiontype
- the event typeprotected void setType(int type)
public WikiEngine getEngine()
public WikiEngine getWikiEngine()
getEngine()
instead.public static boolean isValidType(int type)
true
if the int value is a WikiPageEvent type.type
- the event typepublic final java.lang.String eventName()
public final java.lang.String getTypeDescription()
getTypeDescription
in class WikiEvent
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.