public class ProgressWindow extends ProgressIndicatorBase implements BlockingProgressIndicator, Disposable
| Modifier and Type | Class and Description |
|---|---|
static interface |
ProgressWindow.Listener |
AbstractProgressIndicatorExBase.IndicatorActionDisposable.Parent| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PROGRESS_DIALOG_POSTPONE_TIME_MILLIS
This constant defines default delay for showing progress dialog (in millis).
|
protected boolean |
myBackgrounded |
static Topic<ProgressWindow.Listener> |
TOPIC |
| Constructor and Description |
|---|
ProgressWindow(boolean shouldShowCancel,
boolean shouldShowBackground,
Project project) |
ProgressWindow(boolean shouldShowCancel,
boolean shouldShowBackground,
Project project,
javax.swing.JComponent parentComponent,
java.lang.String cancelText) |
ProgressWindow(boolean shouldShowCancel,
boolean shouldShowBackground,
Project project,
java.lang.String cancelText) |
ProgressWindow(boolean shouldShowCancel,
Project project) |
| Modifier and Type | Method and Description |
|---|---|
void |
background() |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
protected com.intellij.openapi.progress.util.ProgressDialog |
getDialog() |
java.lang.String |
getTitle() |
protected boolean |
isBackgrounded() |
boolean |
isPopupWasShown() |
protected void |
prepareShowDialog() |
void |
pumpEventsForHierarchy() |
void |
setCancelButtonText(java.lang.String text) |
void |
setDelayInMillis(int delayInMillis)
There is a possible case that many short (in terms of time) progress tasks are executed in a small amount of time.
|
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 |
setTitle(java.lang.String title) |
protected void |
showDialog() |
void |
start()
Marks the process as started.
|
void |
startBlocking() |
void |
startBlocking(java.lang.Runnable init) |
void |
stop()
Marks the process as finished.
|
java.lang.String |
toString() |
cancel, isCanceledaddStateDelegate, checkCanceled, delegateProgressChange, delegateRunningChange, finish, isFinished, isReuseable, onProgressChange, onRunningChange, popState, processFinish, pushState, removeAllStateDelegates, removeStateDelegate, setOwnerTask, wasStarteddontStartActivity, finishNonCancelableSection, getCancellationTrace, getFraction, getLock, getModalityState, getText, getText2, initStateFrom, isCancelable, isIndeterminate, isModal, isRunning, isShowing, setModalityProgress, startNonCancelableSectionchangeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcancel, checkCanceled, finishNonCancelableSection, getFraction, getModalityState, getText, getText2, isCanceled, isIndeterminate, isModal, isRunning, isShowing, popState, pushState, setModalityProgress, startNonCancelableSectioninitStateFrompublic static final int DEFAULT_PROGRESS_DIALOG_POSTPONE_TIME_MILLIS
setDelayInMillis(int),
Constant Field Valuesprotected boolean myBackgrounded
public static final Topic<ProgressWindow.Listener> TOPIC
public ProgressWindow(boolean shouldShowCancel,
Project project)
public ProgressWindow(boolean shouldShowCancel,
boolean shouldShowBackground,
Project project)
public ProgressWindow(boolean shouldShowCancel,
boolean shouldShowBackground,
Project project,
java.lang.String cancelText)
public ProgressWindow(boolean shouldShowCancel,
boolean shouldShowBackground,
Project project,
javax.swing.JComponent parentComponent,
java.lang.String cancelText)
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 AbstractProgressIndicatorExBasepublic void setDelayInMillis(int delayInMillis)
DEFAULT_PROGRESS_DIALOG_POSTPONE_TIME_MILLISdelayInMillis - new delay time in millisecondsprotected void prepareShowDialog()
public void startBlocking()
public void startBlocking(java.lang.Runnable init)
startBlocking in interface BlockingProgressIndicatorpublic void pumpEventsForHierarchy()
protected void showDialog()
public void setIndeterminate(boolean indeterminate)
ProgressIndicatorProgressIndicator.setFraction(double)).setIndeterminate in interface ProgressIndicatorsetIndeterminate in class AbstractProgressIndicatorExBasepublic void stop()
ProgressIndicatorProgressManager internals, shouldn't be called from client code
unless you know what you're doing.stop in interface ProgressIndicatorstop in class AbstractProgressIndicatorExBaseprotected com.intellij.openapi.progress.util.ProgressDialog getDialog()
public void background()
protected boolean isBackgrounded()
public 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 void setTitle(java.lang.String title)
public java.lang.String getTitle()
public void setCancelButtonText(java.lang.String text)
public void dispose()
Disposabledispose in interface Disposablepublic boolean isPopupWasShown()
isPopupWasShown in interface ProgressIndicatorisPopupWasShown in class AbstractProgressIndicatorBasepublic java.lang.String toString()
toString in class AbstractProgressIndicatorBase