de.unikiel.ipn.htmlform
Class Message

java.lang.Object
  |
  +--de.unikiel.ipn.htmlform.Message

public class Message
extends java.lang.Object

A Message.

See Also:
MessageHandler

Field Summary
static int ERROR_MESSAGE
          An error message.
static int INFORMATION_MESSAGE
          An information message.
static int RESULT_MESSAGE
          A result of a calculation.
 
Constructor Summary
Message(java.lang.String message, int type)
          Create a new Message.
 
Method Summary
 java.lang.String getMessage()
          Returns the message text.
 int getType()
          Returns the message type.
 java.lang.String toString()
          Returns the message text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERROR_MESSAGE

public static final int ERROR_MESSAGE
An error message. Error messages are usually displayed in a JDialog by the MessageHandler that has the focus (a java.awt.Window).

See Also:
Constant Field Values

INFORMATION_MESSAGE

public static final int INFORMATION_MESSAGE
An information message. Information messages are usually displayed in a JDialog by the MessageHandler that has the focus (a java.awt.Window).

See Also:
Constant Field Values

RESULT_MESSAGE

public static final int RESULT_MESSAGE
A result of a calculation. It is usually applied by the MessageHandler that has waited for a result. How it is used depends on the MessageHandler

See Also:
Constant Field Values
Constructor Detail

Message

public Message(java.lang.String message,
               int type)
Create a new Message.

Parameters:
message - the message text
type - the message type
See Also:
ERROR_MESSAGE, INFORMATION_MESSAGE, RESULT_MESSAGE
Method Detail

getMessage

public java.lang.String getMessage()
Returns the message text.

Returns:
the message text

getType

public int getType()
Returns the message type.

Returns:
the message type
See Also:
ERROR_MESSAGE, INFORMATION_MESSAGE, RESULT_MESSAGE

toString

public java.lang.String toString()
Returns the message text.

Overrides:
toString in class java.lang.Object
Returns:
the message text
See Also:
getMessage()