gov.sandia.ccaffeine.dc.user_iface.MVC.event
Class PrintEvent

java.lang.Object
  extended by java.util.EventObject
      extended by gov.sandia.ccaffeine.dc.user_iface.MVC.event.PrintEvent
All Implemented Interfaces:
java.io.Serializable

public class PrintEvent
extends java.util.EventObject

Used to notify components that an entity wants to print a string. A view entity might respond by writing the string to standard out.

See Also:
Serialized Form

Field Summary
protected  java.lang.String message
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PrintEvent(java.lang.Object source, java.lang.String message)
          Create an PrintEvent.
 
Method Summary
 java.lang.String getMessage()
          Retrieve the string that is to be printed.
 
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
 

Field Detail

message

protected java.lang.String message
Constructor Detail

PrintEvent

public PrintEvent(java.lang.Object source,
                  java.lang.String message)
Create an PrintEvent. This event can be used to notify components that an entity wants to print a string. A view entity might respond by writing the string to standard out.

Parameters:
source - The entity that created this event.
message - The mesage to be printed.
Method Detail

getMessage

public java.lang.String getMessage()
Retrieve the string that is to be printed.

Returns:
The string that is to be printed.