| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class MessageChangedEvent extends MailEvent
This class models Message change events.
Field Summary | |
---|---|
static int |
ENVELOPE_CHANGED
The message's envelope (headers, but not body) changed. |
static int |
FLAGS_CHANGED
The message's flags changed. |
protected transient Message |
msg
The message that changed. |
protected int |
type
The event type. |
Constructor Summary | |
---|---|
MessageChangedEvent(Object source, int type, Message msg) Constructor. |
Method Summary | |
---|---|
void |
Invokes the appropriate MessageChangedListener method. |
Message |
Return the changed Message. |
int |
Return the type of this event. |
Methods inherited from class javax.mail.event.MailEvent |
---|
dispatch |
Field Detail |
---|
public static final int ENVELOPE_CHANGED
public static final int FLAGS_CHANGED
protected transient Message msg
protected int type
Constructor Detail |
---|
public MessageChangedEvent(Object source, int type, Message msg)
source
- The folder that owns the messagetype
- The change typemsg
- The changed messageMethod Detail |
---|
public void dispatch(Object listener)
dispatch
in class MailEvent
listener
public Message getMessage()
public int getMessageChangeType()
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |