javax.mail.event
Class StoreEvent
A store notification event.
static int | ALERT- Indicates that this message is an ALERT.
|
static int | NOTICE- Indicates that this message is a NOTICE.
|
protected String | message- The message text to be presented to the user.
|
protected int | type- The event type.
|
void | dispatch(Object listener)- Invokes the appropriate listener method.
|
String | getMessage()- Returns the notification message.
|
int | getMessageType()- Returns the type of this event.
|
ALERT
public static final int ALERT
Indicates that this message is an ALERT.
NOTICE
public static final int NOTICE
Indicates that this message is a NOTICE.
message
protected String message
The message text to be presented to the user.
type
protected int type
The event type.
StoreEvent
public StoreEvent(Store source,
int type,
String message) Constructor.
source - the storetype - the type of event (ALERT or NOTICE)message - the notification message
dispatch
public void dispatch(Object listener)
Invokes the appropriate listener method.
- dispatch in interface MailEvent
getMessage
public String getMessage()
Returns the notification message.
getMessageType
public int getMessageType()
Returns the type of this event.
© Copyright 2003, 2004
The Free Software Foundation, All rights reserved