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

net.java.sip.communicator.impl.galagonotification
Class GalagoPopupMessageHandler

java.lang.Object
  extended by net.java.sip.communicator.service.systray.AbstractPopupMessageHandler
      extended by net.java.sip.communicator.impl.galagonotification.GalagoPopupMessageHandler
All Implemented Interfaces:
PopupMessageHandler

public class GalagoPopupMessageHandler
extends AbstractPopupMessageHandler

Implements PopupMessageHandler according to the freedesktop.org Desktop Notifications spec.

Author:
Lubomir Marinov

Constructor Summary
GalagoPopupMessageHandler(boolean iconStaticIsImplemented)
          Initializes a new GalagoPopupMessageHandler instance with an indicator which determines whether the freedesktop.org Desktop Notifications server has reported that it implements the "icon-static" hint and the new instance has to send it the icons of the PopupMessages for display.
 
Method Summary
 int getPreferenceIndex()
          Returns the preference index of this PopupMessageHandler which indicates how many features it supports.
 void showPopupMessage(PopupMessage popupMessage)
          Shows the title and the message of the specified PopupMessage.
 String toString()
          Gets the human-readable localized description of this PopupMessageHandler.
 
Methods inherited from class net.java.sip.communicator.service.systray.AbstractPopupMessageHandler
addPopupMessageListener, firePopupMessageClicked, removePopupMessageListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GalagoPopupMessageHandler

public GalagoPopupMessageHandler(boolean iconStaticIsImplemented)
Initializes a new GalagoPopupMessageHandler instance with an indicator which determines whether the freedesktop.org Desktop Notifications server has reported that it implements the "icon-static" hint and the new instance has to send it the icons of the PopupMessages for display.

Parameters:
iconStaticIsImplemented - true if the freedesktop.org Desktop Notifications server has reported that it implements the "icon-static" hint and the new instance has to send it the icons of the PopupMessages for display; otherwise, false and the new instance will not send the icons of the PopupMessages for display
Method Detail

getPreferenceIndex

public int getPreferenceIndex()
Returns the preference index of this PopupMessageHandler which indicates how many features it supports.

Returns:
the preference index of this PopupMessageHandler which indicates how many features it supports
See Also:
PopupMessageHandler.getPreferenceIndex()

showPopupMessage

public void showPopupMessage(PopupMessage popupMessage)
Shows the title and the message of the specified PopupMessage.

Parameters:
popupMessage - the PopupMessage specifying the title and the message to be shown
See Also:
PopupMessageHandler.showPopupMessage(PopupMessage)

toString

public String toString()
Gets the human-readable localized description of this PopupMessageHandler.

Specified by:
toString in interface PopupMessageHandler
Overrides:
toString in class Object
Returns:
the human-readable localized description of this PopupMessageHandler
See Also:
PopupMessageHandler.toString()

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

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