public class ProgressWatcher extends Object
| Constructor and Description |
|---|
ProgressWatcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
addWork(int workToAdd)
Add a unit of work to be completed.
|
void |
finishWork(int workToRemove)
Indicate that a # of work units has been completed.
|
int |
getPercentComplete()
Get the percentage complete of the total work specified.
|
void |
resetToZero()
Reset the ProgressWatcher to zero.
|
void |
setTotalWork(int totalWorkIn)
Set the total amount of work to be completed.
|
void |
start()
Start watching the progress of a given amount of work.
|
void |
stop()
Indicate this ProgressWatcher is finished watching.
|
public void start()
public int getPercentComplete()
throws IllegalStateException
IllegalStateException - if this ProgressWatcher has not been started yet.public void setTotalWork(int totalWorkIn)
totalWorkIn - to set.public void addWork(int workToAdd)
workToAdd - public void finishWork(int workToRemove)
workToRemove - public void stop()
public void resetToZero()
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.