javax.mail.event
クラス StoreEvent

java.lang.Object
  上位を拡張 java.util.EventObject
      上位を拡張 javax.mail.event.MailEvent
          上位を拡張 javax.mail.event.StoreEvent
すべての実装されたインタフェース:
Serializable

public final class StoreEvent
extends MailEvent

このクラスは Store 接続からの通知をモデル化します。 これらの通知には ALERTS 又は NOTICES があります。 ALERTS はユーザがメッセージに注意を払う形式でユーザに提示されなければなりません。

関連項目:
直列化された形式

フィールドの概要
static int ALERT
          このメッセージが ALERT であることを示します。
protected  String message
          ユーザに提示されるメッセージテキストです。
static int NOTICE
          このメッセージが NOTICE であることを示します。
protected  int type
          イベントの型です。
 
クラス java.util.EventObject から継承されたフィールド
source
 
コンストラクタの概要
StoreEvent(Store store, int type, String message)
          コンストラクタです。
 
メソッドの概要
 void dispatch(Object listener)
          適切な StoreListener メソッドを呼び出します。
 String getMessage()
          Store からメッセージを取得します。
 int getMessageType()
          このイベントの型を返します。
 
クラス java.util.EventObject から継承されたメソッド
getSource, toString
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

ALERT

public static final int ALERT
このメッセージが ALERT であることを示します。

関連項目:
定数フィールド値

NOTICE

public static final int NOTICE
このメッセージが NOTICE であることを示します。

関連項目:
定数フィールド値

type

protected int type
イベントの型です。


message

protected String message
ユーザに提示されるメッセージテキストです。

コンストラクタの詳細

StoreEvent

public StoreEvent(Store store,
                  int type,
                  String message)
コンストラクタです。

パラメータ:
store - ソース Store
メソッドの詳細

getMessageType

public int getMessageType()
このイベントの型を返します。

戻り値:
関連項目:
ALERT, NOTICE

getMessage

public String getMessage()
Store からメッセージを取得します。

戻り値:
Store からのメッセージ

dispatch

public void dispatch(Object listener)
適切な StoreListener メソッドを呼び出します。

定義:
クラス MailEvent 内の dispatch