TV-Browser 2.7.5 API

tvbrowser.ui.tray
Class TrayIcon

java.lang.Object
  extended by tvbrowser.ui.tray.TrayIcon

public class TrayIcon
extends Object

A class that uses reflection to get support for Java 6 tray classes. If Java 6 isn't installed the tray simply doesn't work but the program runs normal with Java 5: Copied from WinTVCap_GUI and changed for TV-Browser.

Author:
René Mach

Constructor Summary
TrayIcon(BufferedImage icon, String toolTip)
          Creates an instance of TrayIcon.
 
Method Summary
 void addMouseListener(MouseListener listener)
          Adds a mouse listener to the tray icon.
 Object getTrayIcon()
          Gets the Java 6 tray icon object.
 void setToolTip(String toolTip)
          Sets the tooltip text of the tray icon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrayIcon

public TrayIcon(BufferedImage icon,
                String toolTip)
Creates an instance of TrayIcon.

Parameters:
icon - The icon image.
toolTip - The tray tooltip text.
Method Detail

setToolTip

public void setToolTip(String toolTip)
Sets the tooltip text of the tray icon.

Parameters:
toolTip - The new tooltip text.

getTrayIcon

public Object getTrayIcon()
Gets the Java 6 tray icon object.

Returns:
The Java 6 tray icon object.

addMouseListener

public void addMouseListener(MouseListener listener)
Adds a mouse listener to the tray icon.

Parameters:
listener - The listener to add.

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)