| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xnap.commons.io.UserAbortProgressMonitor
public class UserAbortProgressMonitor
A progress monitor that acts as a proxy and throws 
 UserAbortException the proxied monitor has been
 cancelled.
| Field Summary | |
|---|---|
| protected  ProgressMonitor | monitor | 
| Constructor Summary | |
|---|---|
| UserAbortProgressMonitor(ProgressMonitor monitor) | |
| Method Summary | |
|---|---|
|  Component | getComponent()Returns the component that displays the progress. | 
|  boolean | isCancelled()Returns true, if the operation has been cancelled by the user. | 
|  void | setCancelEnabled(boolean enabled)Enables the cancel button. | 
|  void | setText(String text)Sets the message text. | 
|  void | setTotalSteps(long max)Sets the maximum value. | 
|  void | setValue(long value)Sets the current value. | 
|  void | work(long amount)Increase the value by amount. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected ProgressMonitor monitor
| Constructor Detail | 
|---|
public UserAbortProgressMonitor(ProgressMonitor monitor)
| Method Detail | 
|---|
public boolean isCancelled()
ProgressMonitor
isCancelled in interface ProgressMonitorpublic void setCancelEnabled(boolean enabled)
ProgressMonitorPer default we assume cancelling is enabled.
setCancelEnabled in interface ProgressMonitorpublic void setTotalSteps(long max)
ProgressMonitor
setTotalSteps in interface ProgressMonitorpublic void setValue(long value)
ProgressMonitor
setValue in interface ProgressMonitorvalue - min <= value <= maxpublic void setText(String text)
ProgressMonitor
setText in interface ProgressMonitorpublic void work(long amount)
ProgressMonitor
work in interface ProgressMonitorpublic Component getComponent()
ProgressMonitornull.
getComponent in interface ProgressMonitor| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||