public class

StoreEvent

extends MailEvent
java.lang.Object
   ↳ java.util.EventObject
     ↳ com.google.code.javax.mail.event.MailEvent
       ↳ com.google.code.javax.mail.event.StoreEvent

Class Overview

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.

Summary

Constants
int ALERT Indicates that this message is an ALERT.
int NOTICE Indicates that this message is a NOTICE.
long serialVersionUID
[Expand]
Inherited Constants
From class com.google.code.javax.mail.event.MailEvent
From class java.util.EventObject
Fields
protected String message The message text to be presented to the user.
protected int type The event type.
[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
StoreEvent(Store store, int type, String message)
Constructor.
Public Methods
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.
[Expand]
Inherited Methods
From class com.google.code.javax.mail.event.MailEvent
From class java.util.EventObject
From class java.lang.Object

Constants

public static final int ALERT

Indicates that this message is an ALERT.

Constant Value: 1 (0x00000001)

public static final int NOTICE

Indicates that this message is a NOTICE.

Constant Value: 2 (0x00000002)

private static final long serialVersionUID

Constant Value: 1938704919992515330 (0x1ae7a9da6074bb02)

Fields

protected String message

The message text to be presented to the user.

protected int type

The event type.

Public Constructors

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

Constructor.

Parameters
store The source Store
type
message

Public Methods

public void dispatch (Object listener)

Invokes the appropriate StoreListener method.

Parameters
listener

public String getMessage ()

Get the message from the Store.

Returns
  • message from the Store

public int getMessageType ()

Return the type of this event.

Returns
  • type
See Also