net.sf.borg.ui
Class SunTrayIconProxy

java.lang.Object
  extended by net.sf.borg.ui.SunTrayIconProxy
All Implemented Interfaces:
Prefs.Listener

public class SunTrayIconProxy
extends Object
implements Prefs.Listener

communicates with the new java built-in system tray APIs


Constructor Summary
SunTrayIconProxy()
           
 
Method Summary
static void addAction(String text, ActionListener action)
          Add an action to the action menu
static SunTrayIconProxy getReference()
           
static boolean hasTrayIcon()
          Checks for presence of the tray icon.
 void prefsChanged()
          called when preferences changed.
static void startTrayIcon(String trayname)
           
 void updateImage()
          set the icon image to the current date or a fixed icon with a B on it depending on user preference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SunTrayIconProxy

public SunTrayIconProxy()
Method Detail

getReference

public static SunTrayIconProxy getReference()

hasTrayIcon

public static boolean hasTrayIcon()
Checks for presence of the tray icon.

Returns:
true, if the tray icon started up successfully, false otherwise

startTrayIcon

public static void startTrayIcon(String trayname)

prefsChanged

public void prefsChanged()
Description copied from interface: Prefs.Listener
called when preferences changed.

Specified by:
prefsChanged in interface Prefs.Listener

updateImage

public void updateImage()
set the icon image to the current date or a fixed icon with a B on it depending on user preference.


addAction

public static void addAction(String text,
                             ActionListener action)
Add an action to the action menu

Parameters:
text - the text for the menu item
action - the action listener for the menu item


Generated December 30 2011 by mbb using Apache Ant(TM) version 1.8.2 compiled on December 20 2010 and Java version 1.6.0_30 from Sun Microsystems Inc. on Linux i386 3.0.0-14-generic-pae