Constructor and Description |
---|
ProgressImpl(String taskName,
String subTask,
boolean indeterminate,
int worked,
int totalWork)
Create a progress information object.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel the job/task.
|
String |
getSubTask() |
String |
getTaskName() |
int |
getTotalWork() |
int |
getWorked() |
boolean |
isCanceled() |
boolean |
isIndeterminate() |
public ProgressImpl(String taskName, String subTask, boolean indeterminate, int worked, int totalWork)
taskName
- the task name, may be null
subTask
- the sub task name, may be null
indeterminate
- if the progress is indeterminateworked
- the number of worked work unitstotalWork
- the total work unitspublic String getTaskName()
getTaskName
in interface Progress
null
public String getSubTask()
getSubTask
in interface Progress
null
public boolean isIndeterminate()
isIndeterminate
in interface Progress
public int getWorked()
getWorked
in interface Progress
Progress.isIndeterminate()
is true
public int getTotalWork()
getTotalWork
in interface Progress
Progress.isIndeterminate()
is true
public boolean isCanceled()
isCanceled
in interface Progress
Progress.isCanceled()
public void cancel()
Progress
cancel
in interface Progress
Progress.cancel()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a