|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.tmaj.util.TextProgressMonitor
public final class TextProgressMonitor
A Class used to monitor the progress of a long text-based task. Generally, the increment() method is placed inside the for loop doing each part of the task.
Field Summary | |
---|---|
static int |
UPDATE_TIME
|
Constructor Summary | |
---|---|
TextProgressMonitor(long totalItems,
java.lang.String taskDescription)
|
|
TextProgressMonitor(long totalItems,
java.lang.String taskDescription,
boolean autoStart)
Construct this object. |
Method Summary | |
---|---|
void |
finish()
Indicate to user task has finished. |
void |
increment()
Increment the total number of parts completed. |
void |
printManualUpdate(java.lang.String message)
|
void |
start()
Indicate to user task has begun. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int UPDATE_TIME
Constructor Detail |
---|
public TextProgressMonitor(long totalItems, java.lang.String taskDescription)
public TextProgressMonitor(long totalItems, java.lang.String taskDescription, boolean autoStart)
totalItems
- total number of items to be processed.taskDescription
- a short description of this taskautoStart
- automatically start() if trueMethod Detail |
---|
public void start()
public void finish()
public void increment()
public void printManualUpdate(java.lang.String message)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |