ProgressHandlerpublic class Tester extends java.lang.Object implements ProgressHandler
| Constructor | Description |
|---|---|
Tester() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
done() |
Used to set the current task as finalized
|
void |
sendError(java.lang.String message) |
Used to send an error message to the progress handler
|
void |
setCurrentStatus(java.lang.String message) |
Used to set the text of the current task
|
void |
setCurrentStatus(java.lang.String message,
int n) |
|
void |
setProgress(int progress) |
Used to set the progress of a task, by using percentual values (between 0
and 100).
|
void |
step() |
|
void |
step(int s) |
public void setProgress(int progress)
setProgress in interface ProgressHandlerprogress - the progress of the current taskpublic void setCurrentStatus(java.lang.String message)
setCurrentStatus in interface ProgressHandlermessage - the message to be sent to the progress handlerpublic void setCurrentStatus(java.lang.String message,
int n)
setCurrentStatus in interface ProgressHandlerpublic void sendError(java.lang.String message)
sendError in interface ProgressHandlermessage - the error message to be sent to the progress handlerpublic void done()
done in interface ProgressHandlerpublic void step()
step in interface ProgressHandlerpublic void step(int s)
step in interface ProgressHandler