javax.mail.event

Class MessageCountAdapter

Implemented Interfaces:
EventListener, MessageCountListener

public abstract class MessageCountAdapter
extends java.lang.Object
implements MessageCountListener

The adapter which receives MessageCount events. The methods in this class are empty; this class is provided as a convenience for easily creating listeners by extending this class and overriding only the methods of interest.

Method Summary

void
messagesAdded(MessageCountEvent e)
Invoked when messages are added into a folder.
void
messagesRemoved(MessageCountEvent e)
Invoked when messages are removed(expunged) from a folder.

Method Details

messagesAdded

public void messagesAdded(MessageCountEvent e)
Invoked when messages are added into a folder.
Specified by:
messagesAdded in interface MessageCountListener


messagesRemoved

public void messagesRemoved(MessageCountEvent e)
Invoked when messages are removed(expunged) from a folder.
Specified by:
messagesRemoved in interface MessageCountListener