public abstract class SysTray extends Object
Modifier and Type | Field and Description |
---|---|
static String |
NOTRAY_PROP
Name of system property ("jsamp.nosystray") to inhibit use of system tray;
if set "true" the system tray will not be used even if it is
apparently supported.
|
Constructor and Description |
---|
SysTray() |
Modifier and Type | Method and Description |
---|---|
abstract Object |
addIcon(Image im,
String tooltip,
PopupMenu popup,
ActionListener iconListener)
Adds an icon to the system tray.
|
static SysTray |
getInstance()
Returns an instance of this class.
|
abstract boolean |
isSupported()
Indicates whether system tray functionality is available.
|
abstract void |
removeIcon(Object trayIcon)
Removes a previously-added icon from the tray.
|
public static final String NOTRAY_PROP
public abstract boolean isSupported()
public abstract Object addIcon(Image im, String tooltip, PopupMenu popup, ActionListener iconListener) throws AWTException
im
- image for displaytooltip
- tooltip text, or nullpopup
- popup menu, or nulliconListener
- listener triggered when icon is activated, or nullAWTException
public abstract void removeIcon(Object trayIcon) throws AWTException
trayIcon
- object obtained from a previous invocation of
addIconAWTException
public static SysTray getInstance()
Copyright © 2008–2024. All rights reserved.