javax.mail.event
Class MessageChangedEvent
public class MessageChangedEvent
This class models Message change events.
ENVELOPE_CHANGED
public static final int ENVELOPE_CHANGED
The message's envelope(headers, but not body) changed.
- 2
FLAGS_CHANGED
public static final int FLAGS_CHANGED
The message's flags changed.
- 1
msg
protected Message msg
The message that changed.
type
protected int type
The event type.
MessageChangedEvent
public MessageChangedEvent(Object source,
int type,
Message msg)
Constructor.
source
- The folder that owns the messagetype
- The change typemsg
- The changed message
dispatch
public void dispatch(Object listener)
Invokes the appropriate MessageChangedListener method.
- dispatch in interface MailEvent
getMessage
public Message getMessage()
Return the changed Message.
getMessageChangeType
public int getMessageChangeType()
Return the type of this event.