javax.mail.event
类 StoreEvent

java.lang.Object
  继承者 java.util.EventObject
      继承者 javax.mail.event.MailEvent
          继承者 javax.mail.event.StoreEvent
所有已实现的接口:
Serializable

public class StoreEvent
extends MailEvent

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.

作者:
John Mani
另请参见:
序列化表格

字段摘要
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
 

字段详细信息

ALERT

public static final int ALERT
Indicates that this message is an ALERT.

另请参见:
常量字段值

NOTICE

public static final int NOTICE
Indicates that this message is a NOTICE.

另请参见:
常量字段值

type

protected int type
The event type.


message

protected String message
The message text to be presented to the user.

构造方法详细信息

StoreEvent

public StoreEvent(Store store,
                  int type,
                  String message)
Constructor.

参数:
store - The source Store
方法详细信息

getMessageType

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

返回:
type
另请参见:
ALERT, NOTICE

getMessage

public String getMessage()
Get the message from the Store.

返回:
message from the Store

dispatch

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

指定者:
MailEvent 中的 dispatch


Copyright © 2013. All Rights Reserved.