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
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
getClass, hashCode, equals, notify, notifyAll, wait, wait, wait |
ERROR
public final static int ERROR
LOG
public final static int LOG
message
String message
messageType
int messageType
MessageEvent
public MessageEvent(Object source)
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
to Class java.lang.String