public final class ProgressFireAdapter extends java.lang.Object implements CancellableTask, Resettable
| Constructor and Description |
|---|
ProgressFireAdapter() |
ProgressFireAdapter(AsyncExecutable targetTask) |
ProgressFireAdapter(AsyncExecutable targetTask,
long maxSteps) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
fireProgress(long step) |
boolean |
fireProgress(long step,
java.lang.String message) |
boolean |
fireProgress(java.lang.Object result,
long step,
java.lang.String message)
Delegates the PROGRESS call to the progressorTask.
|
int |
getFireCount() |
long |
getMaxSteps() |
int |
getPercentageDone() |
AsyncExecutable |
getProgressorTask() |
void |
reset()
This method is called by the ResetButton on it's registered target.
|
void |
setMaxSteps(long maxSteps)
Set the maximum number of steps expected.
|
void |
setProgressorTask(AsyncExecutable targetTask)
Sets the target task that fires it's progress to this adapter.
|
boolean |
wasCancelled()
Tells whether ever an attempt has been made to cancel this task.
|
public ProgressFireAdapter()
public ProgressFireAdapter(AsyncExecutable targetTask)
public ProgressFireAdapter(AsyncExecutable targetTask, long maxSteps)
public final void setMaxSteps(long maxSteps)
public final void reset()
Resettablereset in interface Resettablepublic final int getPercentageDone()
public final long getMaxSteps()
public final boolean fireProgress(long step)
public final boolean fireProgress(long step,
java.lang.String message)
public final boolean fireProgress(java.lang.Object result,
long step,
java.lang.String message)
public final int getFireCount()
public final void setProgressorTask(AsyncExecutable targetTask)
public AsyncExecutable getProgressorTask()
public final boolean wasCancelled()
CancellableTaskwasCancelled in interface CancellableTaskCopyright © 2014 EsprIT-Systems. All Rights Reserved.