Package org.astrogrid.samp.gui
Class SysTray.NoSysTray
- java.lang.Object
-
- org.astrogrid.samp.gui.SysTray
-
- org.astrogrid.samp.gui.SysTray.NoSysTray
-
-
Constructor Summary
Constructors Modifier Constructor Description private
NoSysTray()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
addIcon(java.awt.Image im, java.lang.String tooltip, java.awt.PopupMenu popup, java.awt.event.ActionListener iconListener)
Adds an icon to the system tray.boolean
isSupported()
Indicates whether system tray functionality is available.void
removeIcon(java.lang.Object trayIcon)
Removes a previously-added icon from the tray.-
Methods inherited from class org.astrogrid.samp.gui.SysTray
getInstance
-
-
-
-
Method Detail
-
isSupported
public boolean isSupported()
Description copied from class:SysTray
Indicates whether system tray functionality is available.- Specified by:
isSupported
in classSysTray
- Returns:
- true iff the addIcon/removeIcon methods are expected to work
-
addIcon
public java.lang.Object addIcon(java.awt.Image im, java.lang.String tooltip, java.awt.PopupMenu popup, java.awt.event.ActionListener iconListener)
Description copied from class:SysTray
Adds an icon to the system tray.
-
removeIcon
public void removeIcon(java.lang.Object trayIcon)
Description copied from class:SysTray
Removes a previously-added icon from the tray.- Specified by:
removeIcon
in classSysTray
- Parameters:
trayIcon
- object obtained from a previous invocation of addIcon
-
-