ProgressHandler
public 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 ProgressHandler
progress
- the progress of the current taskpublic void setCurrentStatus(java.lang.String message)
setCurrentStatus
in interface ProgressHandler
message
- the message to be sent to the progress handlerpublic void setCurrentStatus(java.lang.String message, int n)
setCurrentStatus
in interface ProgressHandler
public void sendError(java.lang.String message)
sendError
in interface ProgressHandler
message
- the error message to be sent to the progress handlerpublic void done()
done
in interface ProgressHandler
public void step()
step
in interface ProgressHandler
public void step(int s)
step
in interface ProgressHandler