public class SmoothProgressAdapter extends AbstractProgressIndicatorExBase implements ProgressIndicatorEx, WrappedProgressIndicator, StandardProgressIndicator
AbstractProgressIndicatorExBase.IndicatorAction| Constructor and Description |
|---|
SmoothProgressAdapter(ProgressIndicator original,
Project project) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the current process.
|
ProgressIndicator |
getOriginalProgressIndicator() |
boolean |
isCanceled() |
boolean |
isIndeterminate() |
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)). |
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 |
startBlocking() |
void |
stop()
Marks the process as finished.
|
addStateDelegate, checkCanceled, delegateProgressChange, delegateRunningChange, finish, isFinished, isReuseable, onProgressChange, onRunningChange, popState, processFinish, pushState, removeAllStateDelegates, removeStateDelegate, setOwnerTask, wasStarteddontStartActivity, finishNonCancelableSection, getCancellationTrace, getFraction, getLock, getModalityState, getText, getText2, initStateFrom, isCancelable, 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, waitaddStateDelegate, finish, initStateFrom, isFinished, processFinish, wasStartedcheckCanceled, finishNonCancelableSection, getFraction, getModalityState, getText, getText2, isModal, isPopupWasShown, isRunning, isShowing, popState, pushState, setModalityProgress, startNonCancelableSectionpublic SmoothProgressAdapter(ProgressIndicator original, Project project)
public ProgressIndicator getOriginalProgressIndicator()
getOriginalProgressIndicator in interface WrappedProgressIndicatorpublic void setIndeterminate(boolean indeterminate)
ProgressIndicatorProgressIndicator.setFraction(double)).setIndeterminate in interface ProgressIndicatorsetIndeterminate in class AbstractProgressIndicatorExBasepublic boolean isIndeterminate()
isIndeterminate in interface ProgressIndicatorisIndeterminate in class AbstractProgressIndicatorBasepublic void start()
ProgressIndicatorProgressManager internals, shouldn't be called from client code
unless you know what you're doing.start in interface ProgressIndicatorstart in class AbstractProgressIndicatorExBasepublic void startBlocking()
public void stop()
ProgressIndicatorProgressManager internals, shouldn't be called from client code
unless you know what you're doing.stop in interface ProgressIndicatorstop in class AbstractProgressIndicatorExBasepublic void setText(java.lang.String text)
ProgressIndicatorsetText in interface ProgressIndicatorsetText in class AbstractProgressIndicatorExBasetext - Text to setProgressIndicator.setText2(String)public void setFraction(double fraction)
ProgressIndicatorsetFraction in interface ProgressIndicatorsetFraction in class AbstractProgressIndicatorExBaseProgressIndicator.setIndeterminate(boolean)public void setText2(java.lang.String text)
ProgressIndicatorsetText2 in interface ProgressIndicatorsetText2 in class AbstractProgressIndicatorExBasetext - Text to setProgressIndicator.setText(String)public final void cancel()
ProgressIndicatorcancel in interface ProgressIndicatorcancel in class AbstractProgressIndicatorExBasepublic final boolean isCanceled()
isCanceled in interface ProgressIndicatorisCanceled in class AbstractProgressIndicatorBaseProgressIndicator.checkCanceled() is called instead.ProgressIndicator.cancel()