| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class StoreEvent extends MailEvent
This class models notifications from the Store connection. These notifications can be ALERTS or NOTICES. ALERTS must be presented to the user in a fashion that calls the user's attention to the message.
Field Summary | |
---|---|
static int |
ALERT
Indicates that this message is an ALERT. |
protected 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 Summary | |
---|---|
StoreEvent(Store store, int type, String message) Constructor. |
Method Summary | |
---|---|
void |
Invokes the appropriate StoreListener method. |
String |
Get the message from the Store. |
int |
Return the type of this event. |
Methods inherited from class javax.mail.event.MailEvent |
---|
dispatch |
Field Detail |
---|
public static final int ALERT
protected String message
public static final int NOTICE
protected int type
Constructor Detail |
---|
public StoreEvent(Store store, int type, String message)
store
- The source Storetype
message
Method Detail |
---|
public void dispatch(Object listener)
dispatch
in class MailEvent
listener
public String getMessage()
public int getMessageType()
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |