|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.mail.event Class StoreEvent
java.lang.Object java.util.EventObject javax.mail.event.MailEvent javax.mail.event.StoreEvent
- All Implemented Interfaces:
- Serializable
public class StoreEvent
- extends MailEvent
Extends:
java.util.EventObject > MailEvent
此类模拟来自 Store 连接的通知。这些通知可以是 ALERT 或 NOTICE。ALERT 必须以一种能引起用户注意该消息的方式呈现给用户。
This class models notifications from the Store connection. These notifications can be ALERTS or NOTICES. ALERTS must be presented to the user in a fashion that calls the user's attention to the message.
- Author:
- John Mani
- See Also:
- Serialized Form
Field Summary | |
---|---|
static int |
ALERT
Indicates that this message is an ALERT. |
protected String |
message
The message text to be presented to the user. |
static int |
NOTICE
Indicates that this message is a NOTICE. |
protected int |
type
The event type. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
StoreEvent(Store store,
int type,
String message)
Constructor. |
Method Summary | |
---|---|
void |
dispatch(Object listener)
Invokes the appropriate StoreListener method. |
String |
getMessage()
Get the message from the Store. |
int |
getMessageType()
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 |
---|
英文文档:
ALERT
public static final int ALERT
- Indicates that this message is an ALERT.
- See Also:
- Constant Field Values
英文文档:
NOTICE
public static final int NOTICE
- Indicates that this message is a NOTICE.
- See Also:
- Constant Field Values
英文文档:
type
protected int type
- The event type.
英文文档:
message
protected String message
- The message text to be presented to the user.
Constructor Detail |
---|
public
StoreEvent(Store store, int type, String message)
构造方法。
store | 源 Store |
StoreEvent
public StoreEvent(Store store, int type, String message)
- Constructor.
- Parameters:
store
- The source Store
Method Detail |
---|
public int
getMessageType()
返回此事件的类型。
return | 类型 |
See also | ALERT, NOTICE |
getMessageType
public int getMessageType()
public String
getMessage()
获取来自 Store 的消息。
return | 来自 Store 的消息 |
getMessage
public String getMessage()
- Get the message from the Store.
- Returns:
- message from the Store
public void
dispatch(Object listener)
调用相应的 StoreListener 方法。
英文文档:
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 : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!