MessageChangedEvent (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


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
所有已实现的接口:
Serializable

public class MessageChangedEvent
extends MailEvent

This class models Message change events.

作者:
John Mani
另请参见:
Serialized Form

字段摘要
static int ENVELOPE_CHANGED
          The message's envelope (headers, but not body) changed.
static int FLAGS_CHANGED
          The message's flags changed.
protected  Message msg
          The message that changed.
protected  int type
          The event type.
 
Fields inherited from class java.util.EventObject
source
 
构造器摘要
MessageChangedEvent(Object source, int type, Message msg)
          Constructor.
 
方法摘要
 void dispatch(Object listener)
          Invokes the appropriate MessageChangedListener method.
 Message getMessage()
          Return the changed Message.
 int getMessageChangeType()
          Return the type of this event.
 
类方法继承 java.util.EventObject
getSource, toString
 
类方法继承 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

FLAGS_CHANGED

public static final int FLAGS_CHANGED
The message's flags changed.

另请参见:
常量字段


ENVELOPE_CHANGED

public static final int ENVELOPE_CHANGED
The message's envelope (headers, but not body) changed.

另请参见:
常量字段


type

protected int type
The event type.


msg

protected transient Message msg
The message that changed.

构造器详细信息

MessageChangedEvent

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

参数:
source - The folder that owns the message
type - The change type
msg - The changed message

方法详细信息

getMessageChangeType

public int getMessageChangeType()
Return the type of this event.

返回:
type

getMessage

public Message getMessage()
Return the changed Message.

返回:
the message

dispatch

public void dispatch(Object listener)
Invokes the appropriate MessageChangedListener method.

规范说明:
dispatch in class MailEvent

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.