|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
de.mospace.swing.event.MessageEvent
public class MessageEvent
A simple event consisting of a String message and a timeout for the duration of the message display.
| Field Summary | |
|---|---|
static int |
DEFAULT_TIMEOUT
Timeout argument for the 4-argument MessageEvent constructor that tells MessageListeners to use their respective default timeouts. |
static int |
NO_CLEAR
Timeout argument for the 4-argument MessageEvent constructor that tells MessageListeners to not clear the message display. |
static int |
TYPE_ERROR
Type argument for the 3- and 4-argument MessageEvent constructors - for error messages. |
static int |
TYPE_INFO
Type argument for the 3- and 4-argument MessageEvent constructors - for information messages. |
static int |
TYPE_WARNING
Type argument for the 3- and 4-argument MessageEvent constructors - for warning messages. |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
MessageEvent(Object source,
String message)
Constructs a new message event with the specified source, and message. |
|
MessageEvent(Object source,
String message,
int type)
Constructs a new message event with the specified source, message, and type. |
|
MessageEvent(Object source,
String message,
int type,
int timeout)
Constructs a new message event with the specified source, message, type, and timeout. |
|
| Method Summary | |
|---|---|
String |
getMessage()
Returns the message of this message event. |
int |
getTimeout()
Returns the timeout for this message event. |
| 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 |
|---|
public static final int TYPE_INFO
public static final int TYPE_ERROR
public static final int TYPE_WARNING
public static final int DEFAULT_TIMEOUT
public static final int NO_CLEAR
| Constructor Detail |
|---|
public MessageEvent(Object source,
String message)
MessageEvent(source, message, TYPE_INFO, DEFAULT_TIMEOUT)
source - the source for the new eventmessage - the message for the new event
public MessageEvent(Object source,
String message,
int type)
MessageEvent(source, message, type, DEFAULT_TIMEOUT)
source - the source for the new eventmessage - the message for the new eventtype - the type of message for the new event. One of
TYPE_INFO, TYPE_ERROR, TYPE_WARNING
public MessageEvent(Object source,
String message,
int type,
int timeout)
source - the source for the new eventmessage - the message for the new eventtype - the type of message for the new event. One of
TYPE_INFO, TYPE_ERROR, TYPE_WARNINGtimeout - the time period during which a listener should display
the message| Method Detail |
|---|
public String getMessage()
public int getTimeout()
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||