public class AppEvent
extends java.lang.Object
Constructor and Description |
---|
AppEvent(java.lang.String strEventMessage)
Creates a new AppEvent using the given message.
|
AppEvent(java.lang.String strEventMessage,
java.lang.Object key,
java.lang.Object value)
Creates a new AppEvent using the given message and the given data
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getData(java.lang.Object key)
Returns a data value held by this event.
|
java.lang.String |
getMessage()
Gets the message held by this event.
|
void |
setData(java.lang.Object key,
java.lang.Object value)
Sets an arbitrary piece of data to be carried by this AppEvent.
|
void |
setMessage(java.lang.String strEventMessage)
Sets the message/command for this AppEvent.
|
public AppEvent(java.lang.String strEventMessage)
strEventMessage
- The message this event should carry.public AppEvent(java.lang.String strEventMessage, java.lang.Object key, java.lang.Object value)
strEventMessage
- The message this event should carry.key
- The key that should be used to identify the piece of data.value
- The value of the data.public void setMessage(java.lang.String strEventMessage)
strEventMessage
- The message this event should carry.public java.lang.String getMessage()
public final void setData(java.lang.Object key, java.lang.Object value)
key
- The key that should be used to identify the piece of data.value
- The value of the data.public java.lang.Object getData(java.lang.Object key)
key
- The key needed to identify the data value.