Movatterモバイル変換


[0]ホーム

URL:


         


Class StoreEvent

java.lang.Object  |  +--java.util.EventObject        |        +--javax.mail.event.MailEvent              |              +--javax.mail.event.StoreEvent
All Implemented Interfaces:
java.io.Serializable

public classStoreEvent
extendsMailEvent

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.

See Also:
Serialized Form

ALERT
          Indicates that this message is an ALERT.
message
          The message text to be presented to the user.
NOTICE
          Indicates that this message is a NOTICE.
type
          The event type.
 
Fields inherited from class java.util.EventObject
source
 
StoreEvent(Store store, int type, java.lang.String message)
          Constructor.
 
dispatch(java.lang.Object listener)
          Invokes the appropriate StoreListener method.
getMessage()
          Get the message from the Store.
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
 

ALERT

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

NOTICE

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

type

protected inttype
The event type.

message

protected java.lang.Stringmessage
The message text to be presented to the user.

StoreEvent

publicStoreEvent(Store store,                  int type,                  java.lang.String message)
Constructor.
Parameters:
source - The source Store

getMessageType

public intgetMessageType()
Return the type of this event.
Returns:
type
See Also:
ALERT,NOTICE

getMessage

public java.lang.StringgetMessage()
Get the message from the Store.
Returns:
message from the Store

dispatch

public voiddispatch(java.lang.Object listener)
Invokes the appropriate StoreListener method.
Overrides:
dispatch in classMailEvent

         


[8]ページ先頭

©2009-2025 Movatter.jp