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

Event representing motifications from the Store connection.

Version:
$Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
See Also:
Serialized Form

Field Summary
static int ALERT
          Indicates that this message is an alert.
protected  String message
          The text to be presented to the user.
static int NOTICE
          Indicates that this message is a notice.
protected  int type
          The message type.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
StoreEvent(Store store, int type, String message)
          Construct a new event.
 
Method Summary
 void dispatch(Object listener)
           
 String getMessage()
          Return the text to be displayed to the user.
 int getMessageType()
          Return the message type.
 
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
 

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 message type.


message

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

Constructor Detail

StoreEvent

public StoreEvent(Store store,
                  int type,
                  String message)
Construct a new event.

Parameters:
store - the Store that initiated the notification
type - the message type
message - the text to be presented to the user
Method Detail

getMessageType

public int getMessageType()
Return the message type.

Returns:
the message type

getMessage

public String getMessage()
Return the text to be displayed to the user.

Returns:
the text to be displayed to the user

dispatch

public void dispatch(Object listener)
Specified by:
dispatch in class MailEvent


Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.