public abstract class ProgressiveTask
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
protected boolean |
completed |
Constructor and Description |
---|
ProgressiveTask() |
ProgressiveTask(ProgressiveTaskListener l) |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
protected void |
declareProgress(float progress) |
boolean |
isCancelled() |
boolean |
isCompleted() |
void |
run() |
protected abstract void |
runImpl()
Implementers of this method MUST return from it occasionally so that the cancelled status can be checked.
|
public ProgressiveTask()
public ProgressiveTask(ProgressiveTaskListener l)
public void cancel()
public boolean isCancelled()
public boolean isCompleted()
public final void run()
run
in interface java.lang.Runnable
protected void declareProgress(float progress)
protected abstract void runImpl()
Copyright © 2014 Infinite Automation Systems. All Rights Reserved.