|
swingx Version 2005-08-19 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.jdesktop.swingx.event.MessageEvent
public class MessageEvent
Represents a message passed from a MessageSource. This class contains properties which indicate the level of the message, a string which represents the user visible message text and an indication of when the message occured.
The message could represent text messages and exceptions. If this message
represents an exception then the value of getThrowable()
will be
non null. Messages are categorized using the
Level
constants.
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
MessageEvent(Object source)
|
|
MessageEvent(Object source,
Object message)
Create a Level.INFO message. |
|
MessageEvent(Object source,
Object value,
Level level)
|
|
MessageEvent(Object source,
Object value,
Level level,
long when)
Constructs a MessageEvent |
Method Summary | |
---|---|
Level |
getLevel()
Returns the level of message. |
String |
getMessage()
Returns the value as a String message. |
Throwable |
getThrowable()
Returns the value as a Throwable. |
Object |
getValue()
Returns the contents of the message. |
long |
getWhen()
Time in milliseconds when the event occured. |
String |
toString()
|
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MessageEvent(Object source)
public MessageEvent(Object source, Object message)
Level.INFO
message.
public MessageEvent(Object source, Object value, Level level)
public MessageEvent(Object source, Object value, Level level, long when)
MessageEvent
source
- the object that originated the eventvalue
- an object which represents the contents of the eventlevel
- indicate the level of the eventwhen
- timestamp of the messageMethod Detail |
---|
public String getMessage()
public Throwable getThrowable()
public Object getValue()
public long getWhen()
public Level getLevel()
public String toString()
toString
in class EventObject
|
swingx Version 2005-08-19 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |