public class WinSystemTray extends Object implements SystemTrayIf
Constructor and Description |
---|
WinSystemTray() |
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)
Create the SytemTray
|
void |
setTrayPopUp(JPopupMenu trayMenu)
Set the JPopupMenu
|
void |
setVisible(boolean b)
Visibility of the Icon
|
public boolean init(JFrame parent, String image, String tooltip)
init
in interface SystemTrayIf
parent
- Parent-Frameimage
- Image-File for Tray-Icontooltip
- Tooltippublic void setVisible(boolean b)
setVisible
in interface SystemTrayIf
b
- public void addLeftClickAction(ActionListener listener)
addLeftClickAction
in interface SystemTrayIf
listener
- Action that is triggered on left clickpublic void addLeftDoubleClickAction(ActionListener listener)
addLeftDoubleClickAction
in interface SystemTrayIf
listener
- Action that is triggered on left doubleclickpublic void addRightClickAction(ActionListener listener)
SystemTrayIf
addRightClickAction
in interface SystemTrayIf
listener
- Action that is triggered on right clickpublic void setTrayPopUp(JPopupMenu trayMenu)
setTrayPopUp
in interface SystemTrayIf
trayMenu
- PopupTV-Browser 2.2.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)