EventObject | +--javax.mail.event.MailEvent | +--javax.mail.event.MessageCountEvent
static int | The messages were added to their folder |
static int | The messages were removed from their folder |
transient Message[] | The messages. |
boolean | If true, this event is the result of an explicit expunge by this client, and the messages in this folder have been renumbered to account for this. |
int | The event type. |
MessageCountEvent(Folder source, int type, boolean removed, Message[] msgs) Constructor. |
void | dispatch(Object listener) Invokes the appropriate MessageCountListener method. |
Message[] | Return the array of messages added or removed. |
int | getType() Return the type of this event. |
boolean | Indicates whether this event is the result of an explicit expunge by this client, or due to an expunge from external sources. |
public static final int ADDED
public static final int REMOVED
protected transient Message[] msgs
protected boolean removed
protected int type
public MessageCountEvent(Folder source, int type, boolean removed, Message[] msgs)
public void dispatch(Object listener)
public Message[] getMessages()
public int getType()
public boolean isRemoved()
getMessageCount
orisConnected
methods to solicit any such notifications.