public abstract class WikiEvent
extends java.util.EventObject
| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR
Indicates a exception or error state.
|
static int |
UNDEFINED
Indicates an undefined state.
|
| Constructor and Description |
|---|
WikiEvent(java.lang.Object src,
int type)
Constructs an instance of this event.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
eventName()
Returns a textual representation of an event type.
|
int |
getType()
Returns the type of this event.
|
java.lang.String |
getTypeDescription()
Returns a String (human-readable) description of an event type.
|
long |
getWhen()
Returns the timestamp of when this WikiEvent occurred.
|
static boolean |
isValidType(int type)
Returns true if the int value is a valid WikiEvent type.
|
protected void |
setType(int type)
Sets the type of this event.
|
java.lang.String |
toString()
Prints a String (human-readable) representation of this object.
|
public static final int ERROR
public static final int UNDEFINED
public WikiEvent(java.lang.Object src,
int type)
src - the Object that is the source of the event.type - the event type.public long getWhen()
protected void setType(int type)
type - the type of this WikiEvent.public int getType()
WikiEvent).public java.lang.String getTypeDescription()
public static boolean isValidType(int type)
ERROR or UNDEFINED. This method is meant to
be subclassed as appropriate.type - The value to test.public java.lang.String eventName()
public java.lang.String toString()
toString in class java.util.EventObjectObject.toString()stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.