org.apache.fop.messaging
Class MessageEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.apache.fop.messaging.MessageEvent
All Implemented Interfaces:
Serializable

public class MessageEvent
extends EventObject

a container for the text and the type of a message MessageEvents are created by MessageHandler and can be received by any MessageListener, which is added to MessageHandler;

See Also:
MessageListener, Serialized Form

Field Summary
static int ERROR
           
static int LOG
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MessageEvent(Object source)
           
 
Method Summary
 String getMessage()
          retrieves the message
 int getMessageType()
          returns the type of message as int
 
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

LOG

public static final int LOG
See Also:
Constant Field Values

ERROR

public static final int ERROR
See Also:
Constant Field Values
Constructor Detail

MessageEvent

public MessageEvent(Object source)
Method Detail

getMessage

public String getMessage()
retrieves the message

Returns:
String containing the message

getMessageType

public int getMessageType()
returns the type of message as int

Returns:
messageType the type of the message as int in the form of MessageEvent.LOG or MessageEvent.ERROR


Copyright ? 1999-2003 Apache Software Foundation. All Rights Reserved.