javax.mail.event
public class MessageCountEvent extends MailEvent
Version: 1.4
Field Summary | |
---|---|
static int | ADDED
Messages were added to the folder. |
protected Message[] | msgs
The messages. |
protected boolean | removed
If true, this event is the result of an explicit expunge by this client.
|
static int | REMOVED
Messages were removed from the folder. |
protected int | type
The event type. |
Constructor Summary | |
---|---|
MessageCountEvent(Folder source, int type, boolean removed, Message[] msgs)
Constructor. |
Method Summary | |
---|---|
void | dispatch(Object listener)
Invokes the appropriate listener method. |
Message[] | getMessages()
Returns the messages that were added or removed. |
int | getType()
Returns the type of this event. |
boolean | isRemoved()
Indicates whether this event is the result of an explicit expunge, or
of an expunge by an external mechanism. |
Parameters: source the folder type the event type (ADDED or REMOVED) removed whether this event is the result of a specific expunge msgs the messages added or removed