public class ProgressWindow extends ProgressIndicatorBase implements BlockingProgressIndicator, Disposable
Modifier and Type | Class and Description |
---|---|
static interface |
ProgressWindow.Listener |
AbstractProgressIndicatorExBase.IndicatorAction
Disposable.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, isCanceled
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, isIndeterminate, isModal, isRunning, isShowing, setModalityProgress, startNonCancelableSection
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
cancel, checkCanceled, finishNonCancelableSection, getFraction, getModalityState, getText, getText2, isCanceled, isIndeterminate, isModal, isRunning, isShowing, popState, pushState, setModalityProgress, startNonCancelableSection
initStateFrom
public 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()
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 setDelayInMillis(int delayInMillis)
DEFAULT_PROGRESS_DIALOG_POSTPONE_TIME_MILLIS
delayInMillis
- new delay time in millisecondsprotected void prepareShowDialog()
public void startBlocking()
public void startBlocking(java.lang.Runnable init)
startBlocking
in interface BlockingProgressIndicator
public void pumpEventsForHierarchy()
protected void showDialog()
public void setIndeterminate(boolean indeterminate)
ProgressIndicator
ProgressIndicator.setFraction(double)
).setIndeterminate
in interface ProgressIndicator
setIndeterminate
in class AbstractProgressIndicatorExBase
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
protected com.intellij.openapi.progress.util.ProgressDialog getDialog()
public void background()
protected boolean isBackgrounded()
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 void setTitle(java.lang.String title)
public java.lang.String getTitle()
public void setCancelButtonText(java.lang.String text)
public void dispose()
Disposable
dispose
in interface Disposable
public boolean isPopupWasShown()
isPopupWasShown
in interface ProgressIndicator
isPopupWasShown
in class AbstractProgressIndicatorBase
public java.lang.String toString()
toString
in class AbstractProgressIndicatorBase