public class SystrayServiceJdicImpl extends AbstractSystrayService
ERROR_MESSAGE_TYPE, INFORMATION_MESSAGE_TYPE, NONE_MESSAGE_TYPE, PNMAE_TRAY_MODE, SC_IMG_AWAY_TYPE, SC_IMG_DND_TYPE, SC_IMG_EXTENDED_AWAY_TYPE, SC_IMG_FFC_TYPE, SC_IMG_OFFLINE_TYPE, SC_IMG_TYPE, WARNING_MESSAGE_TYPE
Constructor and Description |
---|
SystrayServiceJdicImpl()
Initializes a new SystrayServiceJdicImpl instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkInitialized()
Checks if the systray icon has been initialized.
|
java.lang.String |
getActiveSystrayMode()
Gets the systray mode that was chosen at startup, either by default or as
an override selected by the user.
|
java.util.Map<java.lang.String,java.lang.String> |
getSystrayModes()
Gets a map of systray modes and resource-keys that describe them.
|
TrayIcon |
getTrayIcon() |
PopupMessageHandler |
setActivePopupMessageHandler(PopupMessageHandler newHandler)
Set the handler which will be used for popup message
|
void |
setNotificationCount(int count)
Set the number of pending notifications to the the application icon
(Dock on OSX, TaskBar on Windows, nothing on Linux currently).
|
void |
setSystrayIcon(int imageType)
Sets a new Systray icon.
|
addPopupHandler, addPopupMessageListener, containsHandler, getActivePopupHandler, getActivePopupMessageHandler, initHandlers, removePopupHandler, removePopupMessageListener, selectBestPopupMessageHandler, showPopupMessage
public SystrayServiceJdicImpl()
public java.util.Map<java.lang.String,java.lang.String> getSystrayModes()
SystrayService
public java.lang.String getActiveSystrayMode()
SystrayService
disabled
if the user selected mode
is not available.public void setSystrayIcon(int imageType)
imageType
- the type of the image to set.public boolean checkInitialized()
SystrayService
public void setNotificationCount(int count)
setNotificationCount
in interface SystrayService
setNotificationCount
in class AbstractSystrayService
count
- ignoredpublic TrayIcon getTrayIcon()
public PopupMessageHandler setActivePopupMessageHandler(PopupMessageHandler newHandler)
setActivePopupMessageHandler
in interface SystrayService
setActivePopupMessageHandler
in class AbstractSystrayService
newHandler
- the handler to set. providing a null handler is like
disabling popup.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.