|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject core.background.BackgroundMonitorStatusEvent
public class BackgroundMonitorStatusEvent
This class provides the events that are triggered by a Background Monitor object.
Field Summary | |
---|---|
static int |
CHECKING_NEW_TRACKS
The event type when the Background Monitor object is checking for changed folders using a new AddTracksTask. |
static int |
NON_PROGRESS_EVENT
The value for a background monitor listener when the background monitor status has changed but it is not a progressed event, i.e. |
static int |
RUNNING
The event type when the Background Monitor object is running. |
static int |
STARTED
The event type when the Background Monitor object has started. |
static int |
STOPPED
The event type when the Background Monitor object has stopped. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
BackgroundMonitorStatusEvent(java.lang.Object source,
int statusEvent,
int progress,
java.util.Date nextRun)
Creates a new BackgroundMonitorStatusEvent object that is passed to the background monitor status listeners. |
Method Summary | |
---|---|
int |
getEventType()
Returns the event type. |
java.util.Date |
getNextRun()
Returns the given date the next Add Tracks Task will be run. |
int |
getProgress()
Returns the reported progress as sent by the BackgroundMonitor object event. |
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 |
---|
public static final int RUNNING
public static final int STARTED
public static final int STOPPED
public static final int CHECKING_NEW_TRACKS
public static final int NON_PROGRESS_EVENT
Constructor Detail |
---|
public BackgroundMonitorStatusEvent(java.lang.Object source, int statusEvent, int progress, java.util.Date nextRun)
source
- The source object triggering the event.statusEvent
- The status event type.progress
- The progress of the event that has occured. If the
progress is not used a NON_PROGRESS_EVENT integer can be used.nextRun
- The date for when the next Add Tracks Task swingworker
thread will execute. This is a rough estimate as the Background
Monitor thread simply sleeps until the given Date.Method Detail |
---|
public int getEventType()
public int getProgress()
public java.util.Date getNextRun()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |