|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectui.SysTrayMain
public class SysTrayMain
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 |
|---|
public static final java.lang.String LONG_TITLE
public static final java.lang.String SHORT_TITLE
public static java.lang.String DEFAULT_LOG_FILE_NAME
public static final Options OPTIONS
public static BackgroundMonitor BACKGROUND_MONITOR
public static java.lang.String BACKGROUND_MONITOR_PREFIX
public static java.lang.String BACKGROUND_MONITOR_RUNNING
public static java.lang.String BACKGROUND_MONITOR_STOPPED
public static java.lang.String BACKGROUND_MONITOR_CHECKING
public static final java.lang.String DATE_FORMAT_NOW
public GuiMain gui
| Constructor Detail |
|---|
public SysTrayMain()
| Method Detail |
|---|
public void exit()
public void displayInfoMessage(java.lang.String title,
java.lang.String message)
title - The title of the message.message - The information message to display.public void resetStatus()
resetStatus in interface Statuspublic void setBackgroundText(java.lang.String str)
setBackgroundText in interface Statusstr - The string displaying the current background monitoring status.public void setStatusText(java.lang.String str)
setStatusText in interface Statusstr - The text string displaying the current status of a task.public void setProgress(int i)
setProgress in interface Statusi - The current progress of a running a task from 0 - 100.public void setIndeterminateProgress(boolean b)
setIndeterminateProgress in interface Statusb - Sets the progress of a task to an indeterminate length of time
to either on or off.public boolean isCancelled()
isCancelled in interface Statuspublic void addOptionsListener()
public static void main(java.lang.String[] args)
args -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||