|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.util.EventObject
javax.mail.event.MailEvent
javax.mail.event.StoreEvent
public class StoreEvent
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.
| 字段摘要 | |
|---|---|
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. |
| 从类 java.util.EventObject 继承的字段 |
|---|
source |
| 构造方法摘要 | |
|---|---|
StoreEvent(Store store,
int type,
String message)
Constructor. |
|
| 方法摘要 | |
|---|---|
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. |
| 从类 java.util.EventObject 继承的方法 |
|---|
getSource, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
public static final int ALERT
public static final int NOTICE
protected int type
protected String message
| 构造方法详细信息 |
|---|
public StoreEvent(Store store,
int type,
String message)
store - The source Store| 方法详细信息 |
|---|
public int getMessageType()
ALERT,
NOTICEpublic String getMessage()
public void dispatch(Object listener)
MailEvent 中的 dispatch
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||