|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
javax.mail.event.MailEvent
javax.mail.event.MessageCountEvent
public class MessageCountEvent
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 messages. |
protected boolean |
removed
If true, this event is the result of an explicit expunge by this 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 source,
int type,
boolean removed,
Message[] msgs)
Constructor. |
|
| Method Summary | |
|---|---|
void |
dispatch(Object listener)
Invokes the appropriate listener method. |
Message[] |
getMessages()
Returns the messages that were added or removed. |
int |
getType()
Returns the type of this event. |
boolean |
isRemoved()
Indicates whether this event is the result of an explicit expunge, or of an expunge by an external mechanism. |
| 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 source,
int type,
boolean removed,
Message[] msgs)
source - the foldertype - the event type (ADDED or REMOVED)removed - whether this event is the result of a specific expungemsgs - the messages added or removed| Method Detail |
|---|
public int getType()
public boolean isRemoved()
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 | |||||||||