org.metasyntactic.event
Class MessageEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--org.metasyntactic.event.MessageEvent
All Implemented Interfaces:
java.io.Serializable

public class MessageEvent
extends java.util.EventObject

MesageEvent is used to notify interested parties that a message is now available for them to read.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MessageEvent(java.lang.Object source, java.lang.Object message)
          Creates a new message event object with "source" as the source of the message and "message" as the actual message
 
Method Summary
 java.lang.Object getMessage()
          Get's the actual message associated with this event
 
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

MessageEvent

public MessageEvent(java.lang.Object source,
                    java.lang.Object message)
Creates a new message event object with "source" as the source of the message and "message" as the actual message

Parameters:
source - The source of this method
message - The message to be sent
Method Detail

getMessage

public java.lang.Object getMessage()
Get's the actual message associated with this event

Returns:
The message being sent