SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.systray
Class AbstractPopupMessageHandler

java.lang.Object
  extended by net.java.sip.communicator.service.systray.AbstractPopupMessageHandler
All Implemented Interfaces:
PopupMessageHandler
Direct Known Subclasses:
GalagoPopupMessageHandler, GrowlNotificationServiceImpl, PopupMessageHandlerSwingImpl, PopupMessageHandlerTrayIconImpl

public abstract class AbstractPopupMessageHandler
extends Object
implements PopupMessageHandler

Abstract base implementation of PopupMessageHandler which facilitates the full implementation of the interface.

Author:
Lubomir Marinov

Constructor Summary
AbstractPopupMessageHandler()
           
 
Method Summary
 void addPopupMessageListener(SystrayPopupMessageListener listener)
          Adds a SystrayPopupMessageListener to this instance so that it receives SystrayPopupMessageEvents.
protected  void firePopupMessageClicked(SystrayPopupMessageEvent evt)
          Notifies the SystrayPopupMessageListeners registered with this instance that a SystrayPopupMessageEvent has occurred.
 void removePopupMessageListener(SystrayPopupMessageListener listener)
          Removes a SystrayPopupMessageListener from this instance so that it no longer receives SystrayPopupMessageEvents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.java.sip.communicator.service.systray.PopupMessageHandler
getPreferenceIndex, showPopupMessage, toString
 

Constructor Detail

AbstractPopupMessageHandler

public AbstractPopupMessageHandler()
Method Detail

addPopupMessageListener

public void addPopupMessageListener(SystrayPopupMessageListener listener)
Adds a SystrayPopupMessageListener to this instance so that it receives SystrayPopupMessageEvents.

Specified by:
addPopupMessageListener in interface PopupMessageHandler
Parameters:
listener - the SystrayPopupMessageListener to be added to this instance
See Also:
PopupMessageHandler.addPopupMessageListener( SystrayPopupMessageListener)

firePopupMessageClicked

protected void firePopupMessageClicked(SystrayPopupMessageEvent evt)
Notifies the SystrayPopupMessageListeners registered with this instance that a SystrayPopupMessageEvent has occurred.

Parameters:
evt - the SystrayPopupMessageEvent to be fired to the SystrayPopupMessageListeners registered with this instance

removePopupMessageListener

public void removePopupMessageListener(SystrayPopupMessageListener listener)
Removes a SystrayPopupMessageListener from this instance so that it no longer receives SystrayPopupMessageEvents.

Specified by:
removePopupMessageListener in interface PopupMessageHandler
Parameters:
listener - the SystrayPopupMessageListener to be removed from this instance
See Also:
PopupMessageHandler.removePopupMessageListener( SystrayPopupMessageListener)

SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.