|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
gov.sandia.ccaffeine.dc.user_iface.MVC.event.MessageEvent
public class MessageEvent
Used to notify components that the cca server sent a message to this client. For example, a server might respond to a "go" command by sending a message. A view entity might respond by printing a string on standard out.
Possible Scenario
The end-user clicked on one of the GO ports
The cca server executes the GO command
The cca server sends a Message to this client
The client responds by displaying the message in standard out.
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
MessageEvent(java.lang.Object source)
Create a MessageEvent. |
|
MessageEvent(java.lang.Object source,
java.lang.String message)
Create a MessageEvent. |
Method Summary | |
---|---|
java.lang.String |
getMessage()
Return the contents of the message |
void |
setMessage(java.lang.String message)
Set the contents of the message. |
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 |
Constructor Detail |
---|
public MessageEvent(java.lang.Object source)
source
- the entity that created this MessageEvent.public MessageEvent(java.lang.Object source, java.lang.String message)
source
- the entity that created this MessageEvent.Method Detail |
---|
public java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- the contents of the message
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |