ui
Class SysTrayMain

java.lang.Object
  extended by ui.SysTrayMain
All Implemented Interfaces:
Status

public class SysTrayMain
extends java.lang.Object
implements Status

The SysTray class handles the iTunesDSM system tray icon and actions. It is also the main class for starting iTunesDSM.


Field Summary
static BackgroundMonitor BACKGROUND_MONITOR
          The global background monitor object.
static java.lang.String BACKGROUND_MONITOR_CHECKING
          The text to show on the status panel when the background monitor has been triggered and is running.
static java.lang.String BACKGROUND_MONITOR_PREFIX
          The text to always show on the background monitoring label of the status panel.
static java.lang.String BACKGROUND_MONITOR_RUNNING
          The text to show when the background monitor is running.
static java.lang.String BACKGROUND_MONITOR_STOPPED
          The text to show on the status panel when the background monitor is not running.
static java.lang.String DATE_FORMAT_NOW
          The preferred method of displayling the next Background Monitor triggered Add Tracks Task date.
static java.lang.String DEFAULT_LOG_FILE_NAME
          The string name for the default log file.
 GuiMain gui
           
static java.lang.String LONG_TITLE
          The title of iTunesDSM in long form or, iTunes Duplicate Song Manager with Folder Watch
static Options OPTIONS
          Creates the top level Options object that is used by all lower classes.
static java.lang.String SHORT_TITLE
          The title of iTunesDSM in short form, iTunesDSM
 
Constructor Summary
SysTrayMain()
          Creates a new system tray icon.
 
Method Summary
 void addOptionsListener()
          Adds a listener to the top level Options object that will write the options to file.
 void displayInfoMessage(java.lang.String title, java.lang.String message)
          Displays an information message to the user via the system tray balloon.
 void exit()
          Removes the tray icon, and exits the JVM>
 boolean isCancelled()
          Not yet implemented.
static void main(java.lang.String[] args)
          Runs iTunesDSM in gui mode.
 void resetStatus()
          Not yet implemented.
 void setBackgroundText(java.lang.String str)
          Not yet implemented.
 void setIndeterminateProgress(boolean b)
          Not yet implemented.
 void setProgress(int i)
          Not yet implemented.
 void setStatusText(java.lang.String str)
          Not yet implemented.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LONG_TITLE

public static final java.lang.String LONG_TITLE
The title of iTunesDSM in long form or, iTunes Duplicate Song Manager with Folder Watch

See Also:
Constant Field Values

SHORT_TITLE

public static final java.lang.String SHORT_TITLE
The title of iTunesDSM in short form, iTunesDSM

See Also:
Constant Field Values

DEFAULT_LOG_FILE_NAME

public static java.lang.String DEFAULT_LOG_FILE_NAME
The string name for the default log file. The default log file contains all of the log information from the GuiMain logger object.


OPTIONS

public static final Options OPTIONS
Creates the top level Options object that is used by all lower classes.


BACKGROUND_MONITOR

public static BackgroundMonitor BACKGROUND_MONITOR
The global background monitor object.


BACKGROUND_MONITOR_PREFIX

public static java.lang.String BACKGROUND_MONITOR_PREFIX
The text to always show on the background monitoring label of the status panel.


BACKGROUND_MONITOR_RUNNING

public static java.lang.String BACKGROUND_MONITOR_RUNNING
The text to show when the background monitor is running.


BACKGROUND_MONITOR_STOPPED

public static java.lang.String BACKGROUND_MONITOR_STOPPED
The text to show on the status panel when the background monitor is not running.


BACKGROUND_MONITOR_CHECKING

public static java.lang.String BACKGROUND_MONITOR_CHECKING
The text to show on the status panel when the background monitor has been triggered and is running.


DATE_FORMAT_NOW

public static final java.lang.String DATE_FORMAT_NOW
The preferred method of displayling the next Background Monitor triggered Add Tracks Task date. It will be displayed in 12 hour format with am/pm.

See Also:
Constant Field Values

gui

public GuiMain gui
Constructor Detail

SysTrayMain

public SysTrayMain()
Creates a new system tray icon.

Method Detail

exit

public void exit()
Removes the tray icon, and exits the JVM>


displayInfoMessage

public void displayInfoMessage(java.lang.String title,
                               java.lang.String message)
Displays an information message to the user via the system tray balloon.

Parameters:
title - The title of the message.
message - The information message to display.

resetStatus

public void resetStatus()
Not yet implemented.

Specified by:
resetStatus in interface Status

setBackgroundText

public void setBackgroundText(java.lang.String str)
Not yet implemented.

Specified by:
setBackgroundText in interface Status
Parameters:
str - The string displaying the current background monitoring status.

setStatusText

public void setStatusText(java.lang.String str)
Not yet implemented.

Specified by:
setStatusText in interface Status
Parameters:
str - The text string displaying the current status of a task.

setProgress

public void setProgress(int i)
Not yet implemented.

Specified by:
setProgress in interface Status
Parameters:
i - The current progress of a running a task from 0 - 100.

setIndeterminateProgress

public void setIndeterminateProgress(boolean b)
Not yet implemented.

Specified by:
setIndeterminateProgress in interface Status
Parameters:
b - Sets the progress of a task to an indeterminate length of time to either on or off.

isCancelled

public boolean isCancelled()
Not yet implemented.

Specified by:
isCancelled in interface Status
Returns:
If true, the object reporting status has been cancelled.

addOptionsListener

public void addOptionsListener()
Adds a listener to the top level Options object that will write the options to file.


main

public static void main(java.lang.String[] args)
Runs iTunesDSM in gui mode.

Parameters:
args -