|
Préférences
Moteurs de recherche
|
|||||||||||||||||||||||||||||||||
JavaTM Platform, Enterprise Edition, v 5.0
javax.mail.event
|
Field Summary | |
---|---|
static int |
ADDED
The messages were added to their folder |
protected Message[] |
msgs
The messages. |
protected boolean |
removed
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. |
static int |
REMOVED
The messages were removed from their 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[] msgs)
Constructor. |
Method Summary | |
---|---|
void |
dispatch(Object listener)
Invokes the appropriate MessageCountListener method. |
Message[] |
getMessages()
Return the array of messages added or removed. |
int |
getType()
Return the type of this event. |
boolean |
isRemoved()
Indicates whether this event is the result of an explicit expunge by this client, or due to an expunge from external sources. |
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 int type
protected boolean removed
protected transient Message[] msgs
Constructor Detail |
---|
public MessageCountEvent(Folder folder, int type, boolean removed, Message[] msgs)
folder
- The containing foldertype
- The event typeremoved
- 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.
If false, this event is the result of an expunge
by external sources.msgs
- The messages added/removedMethod Detail |
---|
public int getType()
public boolean isRemoved()
true
, this event is due to an
explicit expunge and hence all remaining messages in this
folder have been renumbered. If false
, this event
is due to an external expunge.
Note that this method is valid only if the type of this event
is REMOVED
public Message[] getMessages()
public void dispatch(Object listener)