|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
com.ecyrd.jspwiki.event.WikiEvent
org.ceryle.wiki.plugin.chat.WikiChatEvent
public class WikiChatEvent
WikiChatEvent captures the information generated when a user activates
the WikiChatPlugin. This includes username, timestamp (already available
from WikiEvent), and the content of the
user's text input.
WikiEvent,
Serialized Form| Field Summary | |
|---|---|
static int |
CHAT_EVENT
The event type for an WikiChatEvent. |
| Fields inherited from class com.ecyrd.jspwiki.event.WikiEvent |
|---|
ERROR, UNDEFINED |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
WikiChatEvent(Object source,
Principal user,
String pagename,
String text)
Constructs an instance of this event. |
|
| Method Summary | |
|---|---|
void |
consume()
Consumes this event so that it will not be processed in the default manner by the source which originated it. |
String |
getPageName()
Returns the name of the origin page of this event. |
String |
getText()
Returns the user text of this event. |
String |
getTypeDescription()
Returns a human-readable description of this event's type. |
Principal |
getUser()
Returns the Principal (current user) associated with this event. |
boolean |
isConsumed()
Returns whether or not this event has been consumed. |
String |
toString()
Returns a String representation of this event. |
| Methods inherited from class com.ecyrd.jspwiki.event.WikiEvent |
|---|
eventName, getType, getWhen, isValidType, setType |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int CHAT_EVENT
| Constructor Detail |
|---|
public WikiChatEvent(Object source,
Principal user,
String pagename,
String text)
source - the Object that is the source of the event, usually an WikiChatPluginuser - the Principal (user)pagename - the wiki page nametext - the chat text| Method Detail |
|---|
public Principal getUser()
public String getPageName()
public String getText()
public String getTypeDescription()
getTypeDescription in class WikiEventpublic void consume()
public boolean isConsumed()
consume()public String toString()
toString in class WikiEvent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||