MessageChangedEvent (Java EE 5)

Java EE API


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

Extends: java.util.EventObject > MailEvent

此类模拟 Message 更改事件。
英文文档:

This class models Message change events.

Author:
John Mani
See Also:
Serialized Form

Field Summary
static int
static int
protected  Message
protected  int
 
Fields inherited from class java.util.EventObject
 
Constructor Summary
 
Method Summary
 void
 Message
 int
 
Methods inherited from class java.util.EventObject
 
Methods inherited from class java.lang.Object
 

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 message's envelope (headers, but not body) changed.

See Also:
Constant Field Values


英文文档:

type

protected int type
The event type.


英文文档:

msg

protected transient Message msg
The message that changed.

Constructor Detail

public MessageChangedEvent(Object source, int type, Message msg)
构造方法。
source 拥有消息的文件夹
type 更改类型
msg 更改的消息
英文文档:

MessageChangedEvent

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

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

Method Detail

public int getMessageChangeType()
返回此事件的类型。
return 类型
英文文档:

getMessageChangeType

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

Returns:
type

public Message getMessage()
返回更改的消息。
return 消息
英文文档:

getMessage

public Message getMessage()
Return the changed Message.

Returns:
the message

public void dispatch(Object listener)
调用相应的 MessageChangedListener 方法。
英文文档:

dispatch

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

Specified by:
dispatch in class MailEvent


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!