|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject javax.mail.event.MailEvent javax.mail.event.MessageCountEvent
public class MessageCountEvent
Event indicating a change in the number of messages in a folder.
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. |
Fields inherited from class java.util.EventObject |
---|
source |
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()
|
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ADDED
public static final int REMOVED
protected transient Message[] msgs
protected int type
protected boolean removed
Constructor Detail |
---|
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 messagesMethod Detail |
---|
public int getType()
public boolean isRemoved()
removed
public Message[] getMessages()
public void dispatch(Object listener)
dispatch
in class MailEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |