public class MessageChangedEvent extends MailEvent
Modifier and Type | Field and Description |
---|---|
static int |
ENVELOPE_CHANGED
The message's envelope (headers, but not content) changed.
|
static int |
FLAGS_CHANGED
The message's flags changed.
|
protected Message |
msg
The message that changed.
|
protected int |
type
The event type.
|
Constructor and Description |
---|
MessageChangedEvent(java.lang.Object source,
int type,
Message msg)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
dispatch(java.lang.Object listener)
Invokes the appropriate listener method.
|
Message |
getMessage()
Returns the changed message.
|
int |
getMessageChangeType()
Returns the type of this event.
|
public static final int FLAGS_CHANGED
public static final int ENVELOPE_CHANGED
protected int type
protected transient Message msg
public MessageChangedEvent(java.lang.Object source, int type, Message msg)
source
- the owner foldertype
- the type of change (FLAGS_CHANGED or ENVELOPE_CHANGED)msg
- the changed messagepublic int getMessageChangeType()
public Message getMessage()