|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
Extends:
java.util.EventObject > MailEvent
此类模拟 Message 更改事件。
This class models Message change events.
- Author:
- John Mani
- See Also:
- Serialized Form
Field Summary | |
---|---|
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 |
Constructor Summary | |
---|---|
MessageChangedEvent(Object source,
int type,
Message msg)
Constructor. |
Method Summary | |
---|---|
void |
dispatch(Object listener)
Invokes the appropriate MessageChangedListener method. |
Message |
getMessage()
Return the changed Message. |
int |
getMessageChangeType()
Return the type of this event. |
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 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 messagetype
- The change typemsg
- 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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!