/* * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client. * * Distributable under LGPL license. * See terms of license at gnu.org. */ package net.java.sip.communicator.service.systray; import net.java.sip.communicator.service.systray.event.*; /** * The PopupMessageHandler role is to give differents methods to * display PopupMessage and listen for events (user click) * coming from that popup. * * @author Symphorien Wanko */ public interface PopupMessageHandler { /** * Register a listener to be informed of systray popup events. * * @param listener the listened which will be informed of systray popup * events */ public void addPopupMessageListener(SystrayPopupMessageListener listener); /** * Removes a listener previously added with addPopupMessageListener. * * @param listener the listener to remove */ public void removePopupMessageListener(SystrayPopupMessageListener listener); /** * Shows the given PopupMessage. Any given PopupMessage * will provides a minimum of two values : a message title and * a message body. thoose two values are respectively available via * PopupMessage#getMessageTitle() and * PopupMessage#getMessage() * * @param popupMessage the message to show */ public void showPopupMessage(PopupMessage popupMessage); /** * Returns a readable description of this popup handler. It is expected * to be a localized string. * * @returns a string describing this popup handler */ @Override public String toString(); }