public class PopupMessageNotificationHandlerImpl extends java.lang.Object implements PopupMessageNotificationHandler
Constructor and Description |
---|
PopupMessageNotificationHandlerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addPopupMessageListener(SystrayPopupMessageListener listener)
Adds a listener for SystrayPopupMessageEvents posted when user
clicks on the system tray popup message.
|
java.lang.String |
getActionType()
Gets the type of this handler.
|
void |
popupMessage(PopupMessageNotificationAction action,
java.lang.String title,
java.lang.String message,
byte[] icon,
java.lang.Object tag)
Shows the given PopupMessage
|
void |
removePopupMessageListener(SystrayPopupMessageListener listener)
Removes a listener previously added with
addPopupMessageListener.
|
public java.lang.String getActionType()
getActionType
in interface NotificationHandler
public void popupMessage(PopupMessageNotificationAction action, java.lang.String title, java.lang.String message, byte[] icon, java.lang.Object tag)
popupMessage
in interface PopupMessageNotificationHandler
action
- the action to act upontitle
- the title of the given messagemessage
- the message to use if and where appropriate (e.g. with
systray or log notification.)icon
- the icon to show in the notification if and where
appropriatetag
- additional info to be used by the notification handlerpublic void addPopupMessageListener(SystrayPopupMessageListener listener)
addPopupMessageListener
in interface PopupMessageNotificationHandler
listener
- the listener to addpublic void removePopupMessageListener(SystrayPopupMessageListener listener)
removePopupMessageListener
in interface PopupMessageNotificationHandler
listener
- the listener to remove
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.