⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
javax.mail.event

Class StoreEvent

EventObject
|
+--javax.mail.event.MailEvent
   |
   +--javax.mail.event.StoreEvent


public class StoreEvent
extends MailEvent

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:

Field Summary

static int

ALERT

Indicates that this message is an ALERT.

static int

NOTICE

Indicates that this message is a NOTICE.

String

message

The message text to be presented to the user.

int

type

The event type.

Constructor Summary

StoreEvent(Store source, int type, String message)

Constructor.

Method Summary

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.

Field Details

ALERT

public static final int ALERT

Indicates that this message is an ALERT.


NOTICE

public static final int NOTICE

Indicates that this message is a NOTICE.


message

protected String message

The message text to be presented to the user.


type

protected int type

The event type.

Constructor Details

StoreEvent

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

Constructor.

Parameters:
source - The source Store
type
message

Method Details

dispatch

public void dispatch(Object listener)

Invokes the appropriate StoreListener method.

Parameters:
listener

getMessage

public String getMessage()

Get the message from the Store.


getMessageType

public int getMessageType()

Return the type of this event.

See Also:
ALERT
NOTICE