FileDocCategorySizeDatePackage
MessageChangedEvent.javaAPI DocJavaMail 1.4.33343Tue Nov 17 10:38:12 GMT 2009javax.mail.event

MessageChangedEvent

public class MessageChangedEvent extends MailEvent
This class models Message change events.
author
John Mani

Fields Summary
public static final int
FLAGS_CHANGED
The message's flags changed.
public static final int
ENVELOPE_CHANGED
The message's envelope (headers, but not body) changed.
protected int
type
The event type.
protected transient Message
msg
The message that changed.
private static final long
serialVersionUID
Constructors Summary
public MessageChangedEvent(Object source, int type, Message msg)
Constructor.

param
source The folder that owns the message
param
type The change type
param
msg The changed message


         	       	    	        
           
	super(source);
	this.msg = msg;
	this.type = type;
    
Methods Summary
public voiddispatch(java.lang.Object listener)
Invokes the appropriate MessageChangedListener method.

	((MessageChangedListener)listener).messageChanged(this);
    
public MessagegetMessage()
Return the changed Message.

return
the message

	return msg;
    
public intgetMessageChangeType()
Return the type of this event.

return
type

	return type;