net.sf.freecol.client.gui
Class GUIMessage

java.lang.Object
  extended by net.sf.freecol.client.gui.GUIMessage

public final class GUIMessage
extends java.lang.Object

Represents a message that can be displayed in the GUI. It has message data and a Color.


Constructor Summary
GUIMessage(java.lang.String message, java.awt.Color color)
          The constructor to use.
 
Method Summary
 java.awt.Color getColor()
          Returns the message's Color.
 java.util.Date getCreationTime()
          Returns the time at which this message was created.
 java.lang.String getMessage()
          Returns the actual message data.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUIMessage

public GUIMessage(java.lang.String message,
                  java.awt.Color color)
The constructor to use.

Parameters:
message - The actual message.
color - The color in which to display this message.
Method Detail

getMessage

public java.lang.String getMessage()
Returns the actual message data.

Returns:
The actual message data.

getColor

public java.awt.Color getColor()
Returns the message's Color.

Returns:
The message's Color.

getCreationTime

public java.util.Date getCreationTime()
Returns the time at which this message was created.

Returns:
The time at which this message was created.