celeboss.ui
Class TrayIcon

java.lang.Object
  extended byceleboss.ui.TrayIcon
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.beans.PropertyChangeListener, com.jeans.trayicon.TrayBalloonListener

public class TrayIcon
extends java.lang.Object
implements java.awt.event.ActionListener, com.jeans.trayicon.TrayBalloonListener, java.beans.PropertyChangeListener

This is the main class that launcher CelebOSS.

Version:
1.0
Author:
bevans

Field Summary
static int ERROR
          This is the constant for the Error balloon
static int INFO
          This is the constant for the Info balloon
static int WARNING
          This is the constant for the Warning balloon
 
Constructor Summary
TrayIcon(Launcher parent, CelebrityManager celeb)
          Create a tray icon instance for the CelebOSS system.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent arg0)
          An action has been performed.
 void balloonChanged(com.jeans.trayicon.TrayBalloonEvent evt)
          An event has occured on a raised balloon.
 void propertyChange(java.beans.PropertyChangeEvent arg0)
          A change has occurred in a monitored property
 void showBalloon(java.lang.String title, java.lang.String message, int type)
          Show a balloon with some text.
 void shutdown()
          Shutdown the tray icon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR

public static final int ERROR
This is the constant for the Error balloon

See Also:
Constant Field Values

INFO

public static final int INFO
This is the constant for the Info balloon

See Also:
Constant Field Values

WARNING

public static final int WARNING
This is the constant for the Warning balloon

See Also:
Constant Field Values
Constructor Detail

TrayIcon

public TrayIcon(Launcher parent,
                CelebrityManager celeb)
         throws java.lang.UnsatisfiedLinkError
Create a tray icon instance for the CelebOSS system. Ths icon provides shortcut actions to the main widnows of the system.

Parameters:
parent - Launch that control GUI activity
celeb - Manager of the celebrity data.
Throws:
java.lang.UnsatisfiedLinkError - if the operating system can not support the concpet of a tray icon.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent arg0)
An action has been performed. This is the request to display another window.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
arg0 - Action description.
See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)

balloonChanged

public void balloonChanged(com.jeans.trayicon.TrayBalloonEvent evt)
An event has occured on a raised balloon. If it is a user click then see if there is an active portfolio.

Specified by:
balloonChanged in interface com.jeans.trayicon.TrayBalloonListener
Parameters:
evt - Description of the event.
See Also:
TrayBalloonListener.balloonChanged(com.jeans.trayicon.TrayBalloonEvent)

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent arg0)
A change has occurred in a monitored property

Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Parameters:
arg0 - Description of change
See Also:
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)

showBalloon

public void showBalloon(java.lang.String title,
                        java.lang.String message,
                        int type)
Show a balloon with some text.

Parameters:
title - Balloon title.
message - Contents
type - Type of balloon

shutdown

public void shutdown()
Shutdown the tray icon.