javax.mail.event
public class MessageCountEvent extends MailEvent
Field Summary | |
---|---|
static int | ADDED
Messages were added to the folder. |
protected Message[] | msgs
The affected messages. |
protected boolean | removed
If true, then messages were expunged from the folder by this client
and message numbers reflect the deletion; if false, then the change
was the result of an expunge by a different client. |
static int | REMOVED
Messages were removed from the folder. |
protected int | type
The event type. |
Constructor Summary | |
---|---|
MessageCountEvent(Folder folder, int type, boolean removed, Message[] messages)
Construct a new event.
|
Method Summary | |
---|---|
void | dispatch(Object listener) |
Message[] | getMessages()
Return the affected messages.
|
int | getType()
Return the event type.
|
boolean | isRemoved() |
Parameters: folder the folder containing the messages type the event type removed indicator of whether messages were expunged by this client messages the affected messages
Returns: the affected messages
Returns: the event type
Returns: whether this event was the result of an expunge by this client
See Also: removed