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, wasStarted
dontStartActivity, finishNonCancelableSection, getCancellationTrace, getFraction, getLock, getModalityState, getText, getText2, initStateFrom, isCancelable, 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
addStateDelegate, finish, initStateFrom, isFinished, processFinish, wasStarted
checkCanceled, finishNonCancelableSection, getFraction, getModalityState, getText, getText2, isModal, isPopupWasShown, isRunning, isShowing, popState, pushState, setModalityProgress, startNonCancelableSection
public SmoothProgressAdapter(ProgressIndicator original, Project project)
public ProgressIndicator getOriginalProgressIndicator()
getOriginalProgressIndicator
in interface WrappedProgressIndicator
public void setIndeterminate(boolean indeterminate)
ProgressIndicator
ProgressIndicator.setFraction(double)
).setIndeterminate
in interface ProgressIndicator
setIndeterminate
in class AbstractProgressIndicatorExBase
public boolean isIndeterminate()
isIndeterminate
in interface ProgressIndicator
isIndeterminate
in class AbstractProgressIndicatorBase
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 AbstractProgressIndicatorExBase
public void startBlocking()
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 AbstractProgressIndicatorExBase
public void setText(java.lang.String text)
ProgressIndicator
setText
in interface ProgressIndicator
setText
in class AbstractProgressIndicatorExBase
text
- Text to setProgressIndicator.setText2(String)
public void setFraction(double fraction)
ProgressIndicator
setFraction
in interface ProgressIndicator
setFraction
in class AbstractProgressIndicatorExBase
ProgressIndicator.setIndeterminate(boolean)
public void setText2(java.lang.String text)
ProgressIndicator
setText2
in interface ProgressIndicator
setText2
in class AbstractProgressIndicatorExBase
text
- Text to setProgressIndicator.setText(String)
public final void cancel()
ProgressIndicator
cancel
in interface ProgressIndicator
cancel
in class AbstractProgressIndicatorExBase
public final boolean isCanceled()
isCanceled
in interface ProgressIndicator
isCanceled
in class AbstractProgressIndicatorBase
ProgressIndicator.checkCanceled()
is called instead.ProgressIndicator.cancel()