org.apache.fop.messaging
Class MessageEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--org.apache.fop.messaging.MessageEvent

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: org.apache.fop.MessageListener

Field Summary
 final static intERROR
           
 final static intLOG
           
 (package private) Stringmessage
           
 (package private) intmessageType
           

Constructor Summary
MessageEvent(Object source)
           

Method Summary
 StringgetMessage()
          retrieves the message
 intgetMessageType()
          returns the type of message as int
 (package private) voidsetMessageType(int messageType)
          sets the message type

Methods inherited from class java.util.EventObject
getSource, toString

Methods inherited from class java.lang.Object
getClass, hashCode, equals, notify, notifyAll, wait, wait, wait

Field Detail

ERROR

public final static int ERROR

LOG

public final static int LOG

message

String message

messageType

int messageType
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

setMessageType

void setMessageType(int messageType)
sets the message type
Parameters:
messageType - the type of the message as int in the form of MessageEvent.LOG or MessageEvent.ERROR

Association Links

to Class java.lang.String