public interface ProgressReceiver
| Modifier and Type | Interface and Description |
|---|---|
static class |
ProgressReceiver.OperationCancelled
Indicates that the operation should be aborted, for instance because the
user has requested that it be cancelled, or because an error has
occurred.
|
static class |
ProgressReceiver.OperationCancelledByUser
Indicates that the operation should be aborted because the user has
requested that it be cancelled.
|
| 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 progress)
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. |
void setProgress(float progress)
throws ProgressReceiver.OperationCancelled
progress - The progress to report.ProgressReceiver.OperationCancelled - If the
operation has been canceled, for instance by the user, or because
of an exception on another thread.void exceptionThrown(Throwable exception)
exception - The exception which has been thrown.void done()
void setMessage(String message) throws ProgressReceiver.OperationCancelled
message - A message describing the current operation.ProgressReceiver.OperationCancelled - If the
operation has been canceled, for instance by the user, or because
of an exception on another thread.void checkForCancellation()
throws ProgressReceiver.OperationCancelled
OperationCancelled exception will be thrown if it has.ProgressReceiver.OperationCancelled - If the
operation has been canceled, for instance by the user, or because
of an exception on another thread.void reset()
throws ProgressReceiver.OperationCancelled
ProgressReceiver.OperationCancelled - If the
operation has been canceled, for instance by the user, or because
of an exception on another thread.void subProgressStarted(SubProgressReceiver subProgressReceiver) throws ProgressReceiver.OperationCancelled
SubProgressReceiver is started,
reporting to this progress receiver.subProgressReceiver - The sub progress receiver which has been
started.ProgressReceiver.OperationCancelled - If the
operation has been canceled, for instance by the user, or because
of an exception on another thread.Copyright © 2011–2025 pepsoft.org. All rights reserved.