javax.mail.event
Class MessageChangedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.mail.event.MailEvent
          extended by 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

Field Summary
static int ENVELOPE_CHANGED
          The messages envelope changed.
static int FLAGS_CHANGED
          The message's flags changed.
protected  Message msg
           
protected  int type
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MessageChangedEvent(Object source, int type, Message message)
          Constructor.
 
Method Summary
 void dispatch(Object listener)
           
 Message getMessage()
          Return the affected message.
 int getMessageChangeType()
          Return the type of change.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

MessageChangedEvent

public MessageChangedEvent(Object source,
                           int type,
                           Message message)
Constructor.

Parameters:
source - the folder that owns the message
type - the event type
message - the affected message
Method Detail

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.