|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.basedb.core.SimpleProgressReporter
public class SimpleProgressReporter
This is a simple implementation of the ProgressReporter interface,
which simply remembers that last values. An application may use the getMessage() and getPercent() method to get information about the
progress. This implementation also supports forwarding the progress information
to another progress reporter.
| Field Summary | |
|---|---|
private String |
message
|
private int |
percent
|
private ProgressReporter |
progress
|
| Constructor Summary | |
|---|---|
SimpleProgressReporter(ProgressReporter progress)
Create a new simple progress reporter. |
|
| Method Summary | |
|---|---|
void |
append(String message)
Append a message to the previous one. |
void |
display(int percent,
String message)
Display a progress message. |
String |
getMessage()
Get the last progress message this progress reporter should display. |
int |
getPercent()
Get the last percentage completed of the task. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final ProgressReporter progress
private String message
private int percent
| Constructor Detail |
|---|
public SimpleProgressReporter(ProgressReporter progress)
progress - An optional progress which is also notified about
the progress| Method Detail |
|---|
public void display(int percent,
String message)
ProgressReporter
display in interface ProgressReporterpercent - How many percent of the task that is completed
or -1 if not knownmessage - A message, or nullpublic void append(String message)
ProgressReporter
append in interface ProgressReportermessage - The messagepublic String getMessage()
public int getPercent()
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||