public class Java6Tray
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addLeftClickAction(java.awt.event.ActionListener listener)
Add a Left-Click-Action
|
void |
addLeftDoubleClickAction(java.awt.event.ActionListener listener)
Add a Left-DoubleClick-Action
|
void |
addRightClickAction(java.awt.event.ActionListener listener)
Add a Right-Click-Action
|
static Java6Tray |
create()
Creates the Java 6 tray.
|
java.awt.Dimension |
getTrayIconSize()
Gets the useable size for tray icon.
|
boolean |
init(javax.swing.JFrame parent,
java.lang.String tooltip)
Init the System-Tray
|
void |
setTrayPopUp(javax.swing.JPopupMenu trayMenu)
Add Popup to Tray-Icon
|
void |
setVisible(boolean b)
Set the visibility of the TrayIcon
|
boolean |
showBalloonTip(java.lang.String caption,
java.lang.String message,
java.awt.TrayIcon.MessageType messageType)
Shows a balloon tip on the TV-Browser tray icon.
|
public static Java6Tray create()
public void addLeftClickAction(java.awt.event.ActionListener listener)
listener
- Action that is triggered on left clickpublic void addLeftDoubleClickAction(java.awt.event.ActionListener listener)
listener
- Action that is triggered on left doubleclickpublic void addRightClickAction(java.awt.event.ActionListener listener)
listener
- Action that is triggered on right clickpublic boolean init(javax.swing.JFrame parent, java.lang.String tooltip)
parent
- Parent-Frametooltip
- Tooltippublic void setTrayPopUp(javax.swing.JPopupMenu trayMenu)
trayMenu
- Popuppublic void setVisible(boolean b)
b
- Visibilitypublic java.awt.Dimension getTrayIconSize()
public boolean showBalloonTip(java.lang.String caption, java.lang.String message, java.awt.TrayIcon.MessageType messageType)
caption
- The caption of the displayed message.message
- The message to display in the balloon tip.messageType
- The type of the displayed balllon tip.TV-Browser 3.4.3, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)