public class MonitorableTaskQueue extends Object implements IMonitorableTask
Constructor and Description |
---|
MonitorableTaskQueue() |
Modifier and Type | Method and Description |
---|---|
void |
addTask(IMonitorableTask task) |
void |
cancel() |
void |
finished()
This method is executed from the Event Dispatch Thread
when the background task finishes.
|
int |
getCurrentStep() |
int |
getFinishStep() |
int |
getInitialStep() |
String |
getNote() |
String |
getStatusMessage() |
boolean |
isCanceled() |
boolean |
isDefined() |
boolean |
isFinished() |
void |
run() |
public void addTask(IMonitorableTask task)
public int getInitialStep()
getInitialStep
in interface IMonitorableTask
public int getFinishStep()
getFinishStep
in interface IMonitorableTask
public int getCurrentStep()
getCurrentStep
in interface IMonitorableTask
public String getStatusMessage()
getStatusMessage
in interface IMonitorableTask
public String getNote()
getNote
in interface IMonitorableTask
public boolean isDefined()
isDefined
in interface IMonitorableTask
public void cancel()
cancel
in interface ICancelableTask
public boolean isCanceled()
isCanceled
in interface ICancelMonitor
public boolean isFinished()
isFinished
in interface ICancelMonitor
public void finished()
IMonitorableTask
finished
in interface IMonitorableTask