public class TextProgressReceiver extends Object implements ProgressReceiver
ProgressReceiver.OperationCancelled, ProgressReceiver.OperationCancelledByUser| Constructor and Description |
|---|
TextProgressReceiver() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkForCancellation()
Check whether the operation has been canceled.
|
void |
done()
Report that the operation has succeeded successfully.
|
void |
exceptionThrown(Throwable exception)
Report that the operation has been aborted due to an exception having
been thrown.
|
void |
reset()
Restart the progress bar.
|
void |
setMessage(String message)
Change the message describing the current operation.
|
void |
setProgress(float progressFraction)
Set the progress as a value from 0.0f to 1.0f (inclusive).
|
void |
subProgressStarted(SubProgressReceiver subProgressReceiver)
Invoked when a subordinate
SubProgressReceiver is started,
reporting to this progress receiver. |
public void setProgress(float progressFraction)
ProgressReceiversetProgress in interface ProgressReceiverprogressFraction - The progress to report.public void exceptionThrown(Throwable exception)
ProgressReceiverexceptionThrown in interface ProgressReceiverexception - The exception which has been thrown.public void reset()
ProgressReceiverreset in interface ProgressReceiverpublic void done()
ProgressReceiverdone in interface ProgressReceiverpublic void setMessage(String message)
ProgressReceiversetMessage in interface ProgressReceivermessage - A message describing the current operation.public void checkForCancellation()
ProgressReceiverOperationCancelled exception will be thrown if it has.checkForCancellation in interface ProgressReceiverpublic void subProgressStarted(SubProgressReceiver subProgressReceiver)
ProgressReceiverSubProgressReceiver is started,
reporting to this progress receiver.subProgressStarted in interface ProgressReceiversubProgressReceiver - The sub progress receiver which has been
started.Copyright © 2011–2023 pepsoft.org. All rights reserved.