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: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 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 © 2003-2008 The Apache Software Foundation. All Rights Reserved.