javax.mail.event
Class MessageChangedEvent
java.lang.Object
java.util.EventObject
javax.mail.event.MailEvent
javax.mail.event.MessageChangedEvent
- All Implemented Interfaces:
- Serializable
public class MessageChangedEvent
- extends MailEvent
- Version:
- $Rev: 421852 $ $Date: 2006-07-14 03:02:19 -0700 (Fri, 14 Jul 2006) $
- See Also:
- Serialized Form
FLAGS_CHANGED
public static final int FLAGS_CHANGED
- The message's flags changed.
- See Also:
- Constant Field Values
ENVELOPE_CHANGED
public static final int ENVELOPE_CHANGED
- The messages envelope changed.
- See Also:
- Constant Field Values
msg
protected transient Message msg
type
protected int type
MessageChangedEvent
public MessageChangedEvent(Object source,
int type,
Message message)
- Constructor.
- Parameters:
source
- the folder that owns the messagetype
- the event typemessage
- the affected message
dispatch
public void dispatch(Object listener)
- Specified by:
dispatch
in class MailEvent
getMessage
public Message getMessage()
- Return the affected message.
- Returns:
- the affected message
getMessageChangeType
public int getMessageChangeType()
- Return the type of change.
- Returns:
- the event type
Copyright © 2006 Apache Software Foundation. All Rights Reserved.