MessageChangedEventpublic class MessageChangedEvent extends MailEvent This class models Message change events. |
Fields Summary |
---|
public static final int | FLAGS_CHANGEDThe message's flags changed. | public static final int | ENVELOPE_CHANGEDThe message's envelope (headers, but not body) changed. | protected int | typeThe event type. | protected transient Message | msgThe message that changed. | private static final long | serialVersionUID |
Constructors Summary |
---|
public MessageChangedEvent(Object source, int type, Message msg)Constructor.
super(source);
this.msg = msg;
this.type = type;
|
Methods Summary |
---|
public void | dispatch(java.lang.Object listener)Invokes the appropriate MessageChangedListener method.
((MessageChangedListener)listener).messageChanged(this);
| public Message | getMessage()Return the changed Message.
return msg;
| public int | getMessageChangeType()Return the type of this event.
return type;
|
|