public class AbstractProgressIndicatorExBase extends AbstractProgressIndicatorBase implements ProgressIndicatorEx
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
AbstractProgressIndicatorExBase.IndicatorAction |
| Constructor and Description |
|---|
AbstractProgressIndicatorExBase() |
AbstractProgressIndicatorExBase(boolean reusable) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStateDelegate(ProgressIndicatorEx delegate) |
void |
cancel()
Cancels the current process.
|
void |
checkCanceled()
Usually invoked in the thread associated with this indicator, used to check if the computation performed by this thread
has been canceled, and, if yes, stop it immediately (by throwing an exception).
|
protected void |
delegateProgressChange(AbstractProgressIndicatorExBase.IndicatorAction action) |
protected void |
delegateRunningChange(AbstractProgressIndicatorExBase.IndicatorAction action) |
void |
finish(TaskInfo task) |
boolean |
isFinished(TaskInfo task) |
protected boolean |
isReuseable() |
protected void |
onProgressChange() |
protected void |
onRunningChange() |
void |
popState() |
void |
processFinish() |
void |
pushState() |
protected void |
removeAllStateDelegates() |
void |
removeStateDelegate(ProgressIndicatorEx delegate) |
void |
setFraction(double fraction)
Sets the fraction: a number between 0.0 and 1.0 reflecting the ratio of work that has already be done (0.0 for nothing, 1.0 for all).
|
void |
setIndeterminate(boolean indeterminate)
Marks the progress indeterminate (for processes that can't estimate the amount of work to be done) or determinate (for processes
that can display the fraction of the work done using
ProgressIndicator.setFraction(double)). |
protected void |
setOwnerTask(TaskInfo owner) |
void |
setText(java.lang.String text)
Sets text above the progress bar
|
void |
setText2(java.lang.String text)
Sets text under the progress bar
|
void |
start()
Marks the process as started.
|
void |
stop()
Marks the process as finished.
|
boolean |
wasStarted() |
dontStartActivity, finishNonCancelableSection, getCancellationTrace, getFraction, getLock, getModalityState, getText, getText2, initStateFrom, isCancelable, isCanceled, isIndeterminate, isModal, isPopupWasShown, isRunning, isShowing, setModalityProgress, startNonCancelableSection, toStringchangeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinitStateFromfinishNonCancelableSection, getFraction, getModalityState, getText, getText2, isCanceled, isIndeterminate, isModal, isPopupWasShown, isRunning, isShowing, setModalityProgress, startNonCancelableSectionpublic AbstractProgressIndicatorExBase(boolean reusable)
public AbstractProgressIndicatorExBase()
public void start()
ProgressIndicatorProgressManager internals, shouldn't be called from client code
unless you know what you're doing.start in interface ProgressIndicatorstart in class AbstractProgressIndicatorBasepublic void stop()
ProgressIndicatorProgressManager internals, shouldn't be called from client code
unless you know what you're doing.stop in interface ProgressIndicatorstop in class AbstractProgressIndicatorBasepublic void cancel()
ProgressIndicatorcancel in interface ProgressIndicatorcancel in class AbstractProgressIndicatorBasepublic void finish(TaskInfo task)
finish in interface ProgressIndicatorExpublic boolean isFinished(TaskInfo task)
isFinished in interface ProgressIndicatorExprotected void setOwnerTask(TaskInfo owner)
public void processFinish()
processFinish in interface ProgressIndicatorExpublic final void checkCanceled()
ProgressIndicatorProgressManager.checkCanceled() where you don't need to know current indicator and pass it around.checkCanceled in interface ProgressIndicatorcheckCanceled in class AbstractProgressIndicatorBasepublic void setText(java.lang.String text)
ProgressIndicatorsetText in interface ProgressIndicatorsetText in class AbstractProgressIndicatorBasetext - Text to setProgressIndicator.setText2(String)public void setText2(java.lang.String text)
ProgressIndicatorsetText2 in interface ProgressIndicatorsetText2 in class AbstractProgressIndicatorBasetext - Text to setProgressIndicator.setText(String)public void setFraction(double fraction)
ProgressIndicatorsetFraction in interface ProgressIndicatorsetFraction in class AbstractProgressIndicatorBaseProgressIndicator.setIndeterminate(boolean)public void pushState()
pushState in interface ProgressIndicatorpushState in class AbstractProgressIndicatorBasepublic void popState()
popState in interface ProgressIndicatorpopState in class AbstractProgressIndicatorBaseprotected boolean isReuseable()
isReuseable in class AbstractProgressIndicatorBasepublic void setIndeterminate(boolean indeterminate)
ProgressIndicatorProgressIndicator.setFraction(double)).setIndeterminate in interface ProgressIndicatorsetIndeterminate in class AbstractProgressIndicatorBasepublic final void addStateDelegate(ProgressIndicatorEx delegate)
addStateDelegate in interface ProgressIndicatorExpublic final void removeStateDelegate(ProgressIndicatorEx delegate)
protected final void removeAllStateDelegates()
protected void delegateProgressChange(AbstractProgressIndicatorExBase.IndicatorAction action)
protected void delegateRunningChange(AbstractProgressIndicatorExBase.IndicatorAction action)
protected void onProgressChange()
protected void onRunningChange()
public boolean wasStarted()
wasStarted in interface ProgressIndicatorEx