public interface SystemTrayIf
Modifier and Type | Method and Description |
---|---|
void |
addLeftClickAction(ActionListener listener)
Add a Left-Click-Action
|
void |
addLeftDoubleClickAction(ActionListener listener)
Add a Left-DoubleClick-Action
|
void |
addRightClickAction(ActionListener listener)
Add a Right-Click-Action
|
boolean |
init(JFrame parent,
String image,
String tooltip)
Init the System-Tray
|
void |
setTrayPopUp(JPopupMenu trayMenu)
Add Popup to Tray-Icon
|
void |
setVisible(boolean b)
Set the visibility of the TrayIcon
|
boolean init(JFrame parent, String image, String tooltip)
parent
- Parent-Frameimage
- Image-File for Tray-Icontooltip
- Tooltipvoid setVisible(boolean b)
b
- Visibilityvoid addLeftClickAction(ActionListener listener)
listener
- Action that is triggered on left clickvoid addLeftDoubleClickAction(ActionListener listener)
listener
- Action that is triggered on left doubleclickvoid addRightClickAction(ActionListener listener)
listener
- Action that is triggered on right clickvoid setTrayPopUp(JPopupMenu trayMenu)
trayMenu
- PopupTV-Browser 2.2.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)