java.lang.Object | +--java.util.EventObject | +--javax.mail.event.MailEvent | +--javax.mail.event.MessageChangedEvent
This class models Message change events.
ENVELOPE_CHANGED The message's envelope (headers, but not body) changed. | |
FLAGS_CHANGED The message's flags changed. | |
msg The message that changed. | |
type The event type. |
Fields inherited from class java.util.EventObject |
source |
MessageChangedEvent(java.lang.Object source, int type,Message msg) Constructor. |
dispatch(java.lang.Object listener) Invokes the appropriate MessageChangedListener method. | |
getMessage() Return the changed Message. | |
getMessageChangeType() Return the type of this event. |
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 |
public static final intFLAGS_CHANGED
public static final intENVELOPE_CHANGED
protected inttype
protected transientMessagemsg
publicMessageChangedEvent(java.lang.Object source, int type,Message msg)
source
- The folder that owns the messagetype
- The change typemsg
- The changed messagepublic intgetMessageChangeType()
publicMessagegetMessage()
public voiddispatch(java.lang.Object listener)
dispatch
in classMailEvent