org.jdtaus.core.text
Class MessageEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.jdtaus.core.text.MessageEvent
All Implemented Interfaces:
Serializable

public class MessageEvent
extends EventObject

Event holding a message.

Version:
$Id: MessageEvent.java 2201 2007-03-21 23:59:00Z schulte2005 $
Author:
Christian Schulte
See Also:
Serialized Form

Field Summary
static int INFORMATION
          Event constant for information messages.
static int NOTIFICATION
          Event constant for notification messages.
static int WARNING
          Event constant for warning messages.
 
Constructor Summary
MessageEvent(Object source, Message message, int type)
          Creates a new instance of .
 
Method Summary
 Message getMessage()
          Getter for property .
 int getType()
          Getter for property .
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INFORMATION

public static final int INFORMATION
Event constant for information messages.

See Also:
Constant Field Values

NOTIFICATION

public static final int NOTIFICATION
Event constant for notification messages.

See Also:
Constant Field Values

WARNING

public static final int WARNING
Event constant for warning messages.

See Also:
Constant Field Values
Constructor Detail

MessageEvent

public MessageEvent(Object source,
                    Message message,
                    int type)
Creates a new instance of .

Parameters:
source - the source of the new event.
message - the message causing the new event.
type - constant indicating the type of the event.
Throws:
IllegalArgumentException - if is not equal to one of the constants , and .
Method Detail

getMessage

public final Message getMessage()
Getter for property .

Returns:
the message causing this event.

getType

public final int getType()
Getter for property .

Returns:
the type of the event.

toString

public String toString()
Returns a string representation of the object.

Returns:
a string representation of the object.


Copyright © 2005-2007 jDTAUS. All Rights Reserved.