StoreEvent (Java EE 5)

Java EE API


javax.mail.event Class StoreEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.mail.event.MailEvent
          extended by 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
protected  String
static int
protected  int
 
Fields inherited from class java.util.EventObject
 
Constructor Summary
 
Method Summary
 void
 String
 int
 
Methods inherited from class java.util.EventObject
 
Methods inherited from class java.lang.Object
 

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()
Return the type of this event.

Returns:
type
See Also:
ALERT, NOTICE

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)
Invokes the appropriate StoreListener 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 : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!