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, toString
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
initStateFrom
finishNonCancelableSection, getFraction, getModalityState, getText, getText2, isCanceled, isIndeterminate, isModal, isPopupWasShown, isRunning, isShowing, setModalityProgress, startNonCancelableSection
public AbstractProgressIndicatorExBase(boolean reusable)
public AbstractProgressIndicatorExBase()
public void start()
ProgressIndicator
ProgressManager
internals, shouldn't be called from client code
unless you know what you're doing.start
in interface ProgressIndicator
start
in class AbstractProgressIndicatorBase
public void stop()
ProgressIndicator
ProgressManager
internals, shouldn't be called from client code
unless you know what you're doing.stop
in interface ProgressIndicator
stop
in class AbstractProgressIndicatorBase
public void cancel()
ProgressIndicator
cancel
in interface ProgressIndicator
cancel
in class AbstractProgressIndicatorBase
public void finish(TaskInfo task)
finish
in interface ProgressIndicatorEx
public boolean isFinished(TaskInfo task)
isFinished
in interface ProgressIndicatorEx
protected void setOwnerTask(TaskInfo owner)
public void processFinish()
processFinish
in interface ProgressIndicatorEx
public final void checkCanceled()
ProgressIndicator
ProgressManager.checkCanceled()
where you don't need to know current indicator and pass it around.checkCanceled
in interface ProgressIndicator
checkCanceled
in class AbstractProgressIndicatorBase
public void setText(java.lang.String text)
ProgressIndicator
setText
in interface ProgressIndicator
setText
in class AbstractProgressIndicatorBase
text
- Text to setProgressIndicator.setText2(String)
public void setText2(java.lang.String text)
ProgressIndicator
setText2
in interface ProgressIndicator
setText2
in class AbstractProgressIndicatorBase
text
- Text to setProgressIndicator.setText(String)
public void setFraction(double fraction)
ProgressIndicator
setFraction
in interface ProgressIndicator
setFraction
in class AbstractProgressIndicatorBase
ProgressIndicator.setIndeterminate(boolean)
public void pushState()
pushState
in interface ProgressIndicator
pushState
in class AbstractProgressIndicatorBase
public void popState()
popState
in interface ProgressIndicator
popState
in class AbstractProgressIndicatorBase
protected boolean isReuseable()
isReuseable
in class AbstractProgressIndicatorBase
public void setIndeterminate(boolean indeterminate)
ProgressIndicator
ProgressIndicator.setFraction(double)
).setIndeterminate
in interface ProgressIndicator
setIndeterminate
in class AbstractProgressIndicatorBase
public final void addStateDelegate(ProgressIndicatorEx delegate)
addStateDelegate
in interface ProgressIndicatorEx
public 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