java.lang.Object
java.util.EventObject
javax.mail.event.MailEvent
javax.mail.event.MessageCountEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class MessageCountEvent
- extends MailEvent
Event indicating a change in the number of messages in a folder.
- Version:
- $Rev: 125583 $ $Date: 2005-01-18 19:44:27 -0800 (Tue, 18 Jan 2005) $
|
Field Summary |
static int |
ADDED
Messages were added to the folder. |
protected javax.mail.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. |
ADDED
public static final int ADDED
- Messages were added to the folder.
- See Also:
- Constant Field Values
REMOVED
public static final int REMOVED
- Messages were removed from the folder.
- See Also:
- Constant Field Values
msgs
protected transient javax.mail.Message[] msgs
- The affected messages.
type
protected int type
- The event type.
removed
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.
MessageCountEvent
public MessageCountEvent(javax.mail.Folder folder,
int type,
boolean removed,
javax.mail.Message[] messages)
- Construct a new event.
getType
public int getType()
- Return the event type.
isRemoved
public boolean isRemoved()
getMessages
public javax.mail.Message[] getMessages()
- Return the affected messages.
dispatch
public void dispatch(java.lang.Object listener)
- Specified by:
dispatch in class MailEvent