java.io.Serializable
public class StoreEvent extends MailEvent
Modifier and Type | Field | Description |
---|---|---|
static int |
ALERT |
Indicates that this message is an ALERT.
|
protected java.lang.String |
message |
The message text to be presented to the user.
|
static int |
NOTICE |
Indicates that this message is a NOTICE.
|
protected int |
type |
The event type.
|
Constructor | Description |
---|---|
StoreEvent(Store store,
int type,
java.lang.String message) |
Construct a StoreEvent.
|
Modifier and Type | Method | Description |
---|---|---|
void |
dispatch(java.lang.Object listener) |
Invokes the appropriate StoreListener method.
|
java.lang.String |
getMessage() |
Get the message from the Store.
|
int |
getMessageType() |
Return the type of this event.
|
public static final int ALERT
public static final int NOTICE
protected int type
protected java.lang.String message
public StoreEvent(Store store, int type, java.lang.String message)
store
- the source Storetype
- the event typemessage
- a message assoicated with the eventCopyright © 2018 Oracle. All rights reserved.