public class MessageCountEvent extends MailEvent
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
MessageCountEvent(Folder folder,
int type,
boolean removed,
Message[] messages)
Construct a new event.
|
Modifier and Type | Method and Description |
---|---|
void |
dispatch(java.lang.Object listener) |
Message[] |
getMessages()
Return the affected messages.
|
int |
getType()
Return the event type.
|
boolean |
isRemoved() |
public static final int ADDED
public static final int REMOVED
protected transient Message[] msgs
protected int type
protected boolean removed
public MessageCountEvent(Folder folder, int type, boolean removed, Message[] messages)
folder
- the folder containing the messagestype
- the event typeremoved
- indicator of whether messages were expunged by this clientmessages
- the affected messagespublic int getType()
public boolean isRemoved()
removed
public Message[] getMessages()