StoreEventpublic 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. |
Fields Summary |
---|
public static final int | ALERTIndicates that this message is an ALERT. | public static final int | NOTICEIndicates that this message is a NOTICE. | protected int | typeThe event type. | protected String | messageThe message text to be presented to the user. | private static final long | serialVersionUID |
Constructors Summary |
---|
public StoreEvent(Store store, int type, String message)Constructor.
super(store);
this.type = type;
this.message = message;
|
Methods Summary |
---|
public void | dispatch(java.lang.Object listener)Invokes the appropriate StoreListener method.
((StoreListener)listener).notification(this);
| public java.lang.String | getMessage()Get the message from the Store.
return message;
| public int | getMessageType()Return the type of this event.
return type;
|
|