core.options
Class OptionsChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by core.options.OptionsChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class OptionsChangeEvent
extends java.util.EventObject

The OptionsChangeEvent class is an EventObject triggered when a change to the Options object has occured.

See Also:
Serialized Form

Field Summary
static int ADD_TRACKS_BACKGROUND_ENABLE_CHANGE
          The event type when adding tracks in the background has been dis/enabled.
static int ADD_TRACKS_BACKGROUND_RUNNING_CHANGE
          The event type when the background monitoring is either enabled/disabled has been changed.
static int BACKGROUND_DELAY_CHANGE
          The event type when the delay for background monitoring has changed.
static int CHECK_FOR_UPDATE_CHANGE
          The event type when check for an update on startup has changed.
static int EXTENSIONS_CHANGE
          The event type when the extensions to filter has changed.
static int GENERIC_CHANGE
          The event type when a generic change has occured to the options object.
static int ITUNES_COPIES_MUSIC_CHANGE
          The event type when the user selects the checkbox that says iTunes copies music to the iTunes music directory.
static int ITUNES_DIR_CHANGE
          The event type when the iTunes music directory has changed.
static int ITUNES_KEEPS_ORGANIZED_CHANGE
          The event type when the user notifies iTunesDSM that iTunes keeps the music folder organized.
static int ITUNES_XML_FILE_CHANGE
          The event type when the iTunes XML file has changed.
static int MINIMIZE_TO_TRAY_ON_CLOSE_CHANGE
          The event type when the minimize to tray on close has changed.
static int MUSIC_DIRECTORY_CHANGE
          The event type when the music directory has changed.
static int NON_PROGRESS_EVENT
          An event type that does not involve monitoring a progress.
static int SEARCHING_ITUNES_XML_FILE
          The options change event for when the options class is searching for the iTunes XML file.
static int START_ON_BOOT_CHANGE
          The event type when the Start on boot option has changed.
static int START_VISIBLE_CHANGE
          The event type when the start visible to the user option has changed.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
OptionsChangeEvent(java.lang.Object source, int eventType, int progress)
          Creates a new OptionsChangeEvent object given the source and the event type.
 
Method Summary
 int getEventType()
          Returns the type of change made to the options object.
 int getProgress()
          Returns the events notified progress.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NON_PROGRESS_EVENT

public static final int NON_PROGRESS_EVENT
An event type that does not involve monitoring a progress.

See Also:
Constant Field Values

SEARCHING_ITUNES_XML_FILE

public static final int SEARCHING_ITUNES_XML_FILE
The options change event for when the options class is searching for the iTunes XML file.

See Also:
Constant Field Values

ITUNES_XML_FILE_CHANGE

public static final int ITUNES_XML_FILE_CHANGE
The event type when the iTunes XML file has changed.

See Also:
Constant Field Values

MUSIC_DIRECTORY_CHANGE

public static final int MUSIC_DIRECTORY_CHANGE
The event type when the music directory has changed.

See Also:
Constant Field Values

ITUNES_DIR_CHANGE

public static final int ITUNES_DIR_CHANGE
The event type when the iTunes music directory has changed.

See Also:
Constant Field Values

BACKGROUND_DELAY_CHANGE

public static final int BACKGROUND_DELAY_CHANGE
The event type when the delay for background monitoring has changed.

See Also:
Constant Field Values

ADD_TRACKS_BACKGROUND_ENABLE_CHANGE

public static final int ADD_TRACKS_BACKGROUND_ENABLE_CHANGE
The event type when adding tracks in the background has been dis/enabled.

See Also:
Constant Field Values

ADD_TRACKS_BACKGROUND_RUNNING_CHANGE

public static final int ADD_TRACKS_BACKGROUND_RUNNING_CHANGE
The event type when the background monitoring is either enabled/disabled has been changed.

See Also:
Constant Field Values

CHECK_FOR_UPDATE_CHANGE

public static final int CHECK_FOR_UPDATE_CHANGE
The event type when check for an update on startup has changed.

See Also:
Constant Field Values

EXTENSIONS_CHANGE

public static final int EXTENSIONS_CHANGE
The event type when the extensions to filter has changed.

See Also:
Constant Field Values

MINIMIZE_TO_TRAY_ON_CLOSE_CHANGE

public static final int MINIMIZE_TO_TRAY_ON_CLOSE_CHANGE
The event type when the minimize to tray on close has changed.

See Also:
Constant Field Values

START_ON_BOOT_CHANGE

public static final int START_ON_BOOT_CHANGE
The event type when the Start on boot option has changed.

See Also:
Constant Field Values

START_VISIBLE_CHANGE

public static final int START_VISIBLE_CHANGE
The event type when the start visible to the user option has changed.

See Also:
Constant Field Values

GENERIC_CHANGE

public static final int GENERIC_CHANGE
The event type when a generic change has occured to the options object.

See Also:
Constant Field Values

ITUNES_COPIES_MUSIC_CHANGE

public static final int ITUNES_COPIES_MUSIC_CHANGE
The event type when the user selects the checkbox that says iTunes copies music to the iTunes music directory.

See Also:
Constant Field Values

ITUNES_KEEPS_ORGANIZED_CHANGE

public static final int ITUNES_KEEPS_ORGANIZED_CHANGE
The event type when the user notifies iTunesDSM that iTunes keeps the music folder organized.

See Also:
Constant Field Values
Constructor Detail

OptionsChangeEvent

public OptionsChangeEvent(java.lang.Object source,
                          int eventType,
                          int progress)
Creates a new OptionsChangeEvent object given the source and the event type. The event type is a string defined as public in this class.

Parameters:
source - The Options object that has changed.
eventType - The change type made.
progress - The progress of the notified event.
Method Detail

getEventType

public int getEventType()
Returns the type of change made to the options object.

Returns:
The event type.

getProgress

public int getProgress()
Returns the events notified progress. The progress could be a non progress event. In that case, the progress is -1.

Returns:
The progress of a reported Options change event. If the event is a non progress event type, then the progress is -1.