javax.mail.event

Class StoreEvent


public class StoreEvent
extends MailEvent

A store notification event.
Version:
1.4
Author:
Chris Burdess

Field Summary

static int
ALERT
Indicates that this message is an ALERT.
static int
NOTICE
Indicates that this message is a NOTICE.
protected String
message
The message text to be presented to the user.
protected int
type
The event type.

Constructor Summary

StoreEvent(Store source, int type, String message)
Constructor.

Method Summary

void
dispatch(Object listener)
Invokes the appropriate listener method.
String
getMessage()
Returns the notification message.
int
getMessageType()
Returns the type of this event.

Methods inherited from class javax.mail.event.MailEvent

dispatch

Field Details

ALERT

public static final int ALERT
Indicates that this message is an ALERT.
Field Value:
1

NOTICE

public static final int NOTICE
Indicates that this message is a NOTICE.
Field Value:
2

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 store
type - the type of event (ALERT or NOTICE)
message - the notification message

Method Details

dispatch

public void dispatch(Object listener)
Invokes the appropriate listener method.
Overrides:
dispatch in interface MailEvent

getMessage

public String getMessage()
Returns the notification message.

getMessageType

public int getMessageType()
Returns the type of this event.

© Copyright 2003, 2004 The Free Software Foundation, All rights reserved