|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 ProgressMonitor
public void setCancelEnabled(boolean enabled)
ProgressMonitor
Per default we assume cancelling is enabled.
setCancelEnabled
in interface ProgressMonitor
public void setTotalSteps(long max)
ProgressMonitor
setTotalSteps
in interface ProgressMonitor
public void setValue(long value)
ProgressMonitor
setValue
in interface ProgressMonitor
value
- min <= value <= maxpublic void setText(String text)
ProgressMonitor
setText
in interface ProgressMonitor
public void work(long amount)
ProgressMonitor
work
in interface ProgressMonitor
public Component getComponent()
ProgressMonitor
null
.
getComponent
in interface ProgressMonitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |