celeboss.ui
Class Launcher

java.lang.Object
  extended byceleboss.ui.Launcher
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class Launcher
extends java.lang.Object
implements java.awt.event.ActionListener

This is the main class that launcher CelebOSS.

Version:
1.0
Author:
bevans

Field Summary
static java.lang.String ACCOUNTS
          Action command name to show the Accounts window
static java.lang.String CELEBRITIES
          Action command name to show the Celebrity window
static java.lang.String LEAGUES
          Action command name to show the Leagues window
static java.lang.String MONITOR
          Action command name to show the Mointor window
static java.lang.String SETTINGS
          Action command name to show the Settings window
static java.lang.String SHUTDOWN
          Action command name to shut the system down
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent arg0)
          An action has been performed.
 void displayBalloon(java.lang.String title, java.lang.String message, int type)
          Display a status ballon if supported.
static Launcher getInstance()
          The Laucnher is a singleton as it starts the whole application
static java.awt.Image getMainImage()
          Get the main image
 boolean hasTrayIcon()
          Is there a icon present in the System Tray
static void main(java.lang.String[] args)
          Starts the Celeb window as a standalone application.
 void shutdown()
          User requests to stop the system running
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACCOUNTS

public static final java.lang.String ACCOUNTS
Action command name to show the Accounts window

See Also:
Constant Field Values

CELEBRITIES

public static final java.lang.String CELEBRITIES
Action command name to show the Celebrity window

See Also:
Constant Field Values

LEAGUES

public static final java.lang.String LEAGUES
Action command name to show the Leagues window

See Also:
Constant Field Values

MONITOR

public static final java.lang.String MONITOR
Action command name to show the Mointor window

See Also:
Constant Field Values

SETTINGS

public static final java.lang.String SETTINGS
Action command name to show the Settings window

See Also:
Constant Field Values

SHUTDOWN

public static final java.lang.String SHUTDOWN
Action command name to shut the system down

See Also:
Constant Field Values
Method Detail

getInstance

public static Launcher getInstance()
The Laucnher is a singleton as it starts the whole application

Returns:
The created singleton.

main

public static void main(java.lang.String[] args)
Starts the Celeb window as a standalone application. The command lines args are

Parameters:
args - Commad line args.

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)

displayBalloon

public void displayBalloon(java.lang.String title,
                           java.lang.String message,
                           int type)
Display a status ballon if supported.

Parameters:
title - The balloon title.
message - Message content
type - Type of balloon.

getMainImage

public static java.awt.Image getMainImage()
Get the main image

Returns:
Returns the celebOSSImage.

hasTrayIcon

public boolean hasTrayIcon()
Is there a icon present in the System Tray

Returns:
Is this Launcher supporting a Tray Icon

shutdown

public void shutdown()
User requests to stop the system running