com.melloware.jukes.gui.view.tasks
Class LongTask
java.lang.Object
com.melloware.jukes.gui.view.tasks.LongTask
- Direct Known Subclasses:
- LoadPlaylistTask, UpdateTagsTask
public abstract class LongTask
- extends java.lang.Object
Abstract class that uses a SwingWorker to perform a time-consuming task.
Copyright (c) 1999-2007 Melloware, Inc.
- Version:
- 4.0
- Author:
- Emil A. Lefkof III
|
Constructor Summary |
LongTask()
Constructor that needs a config object and a filename to work on. |
|
Method Summary |
int |
getCurrent()
Called to find out how much has been done. |
int |
getLengthOfTask()
Called to find out how much work needs
to be done. |
java.lang.String |
getMessage()
Returns the most recent status message, or null
if there is no current status message. |
abstract void |
go()
Called to start the task. |
boolean |
isCancelled()
Called to find out if the task has been cancelled. |
boolean |
isDone()
Called to find out if the task has completed. |
void |
stop()
Stops the current long task. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
canceled
protected boolean canceled
done
protected boolean done
current
protected int current
lengthOfTask
protected int lengthOfTask
statMessage
protected java.lang.String statMessage
LongTask
public LongTask()
- Constructor that needs a config object and a filename to work on.
go
public abstract void go()
- Called to start the task.
getCurrent
public int getCurrent()
- Called to find out how much has been done.
getLengthOfTask
public int getLengthOfTask()
- Called to find out how much work needs
to be done.
getMessage
public java.lang.String getMessage()
- Returns the most recent status message, or null
if there is no current status message.
isCancelled
public boolean isCancelled()
- Called to find out if the task has been cancelled.
isDone
public boolean isDone()
- Called to find out if the task has completed.
stop
public void stop()
- Stops the current long task.
Copyright © 1999-2008 Melloware Inc. All Rights Reserved.