public class StoreEvent extends MailEvent
Modifier and Type | Field and Description |
---|---|
static int |
ALERT
Indicates that this message is an alert.
|
protected java.lang.String |
message
The text to be presented to the user.
|
static int |
NOTICE
Indicates that this message is a notice.
|
protected int |
type
The message type.
|
Constructor and Description |
---|
StoreEvent(Store store,
int type,
java.lang.String message)
Construct a new event.
|
Modifier and Type | Method and Description |
---|---|
void |
dispatch(java.lang.Object listener) |
java.lang.String |
getMessage()
Return the text to be displayed to the user.
|
int |
getMessageType()
Return the message type.
|
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 Store that initiated the notificationtype
- the message typemessage
- the text to be presented to the user