public class SwingRenderingProgressMonitor extends AbstractProgressMonitor
ProgressRenderer
.
Methods of the progress renderer are always called on the Swing EDT.AbstractProgressMonitor.State
ProgressMonitor.CancelListener
Modifier and Type | Field and Description |
---|---|
private int |
currentProgressValue |
private ProgressRenderer |
delegate |
private static int |
PROGRESS_BAR_MAX |
state
ALL_TICKS, DEFAULT_TICKS
Constructor and Description |
---|
SwingRenderingProgressMonitor(ProgressRenderer delegate) |
Modifier and Type | Method and Description |
---|---|
void |
doBeginTask() |
void |
doFinishTask() |
protected void |
doSetCustomText(java.lang.String title) |
protected void |
doSetIntermediate(boolean value) |
protected void |
doSetTitle(java.lang.String title) |
ProgressTaskId |
getProgressTaskId()
Returns the task ID of the progress dialog
Should be used only by PleaseWaitRunnable
|
java.awt.Component |
getWindowParent()
Return the parent windows of progress dialog
|
void |
setProgressTaskId(ProgressTaskId taskId)
Set the task ID of the progress dialog
Should be used only by PleaseWaitRunnable.
|
protected void |
updateProgress(double progressValue) |
addCancelListener, appendLogMessage, beginTask, beginTask, cancel, checkState, childFinished, childSetCustomText, childSetIntermediate, childSetProgress, childSetTitle, createSubTaskMonitor, finishTask, getTicks, getTicksCount, indeterminateSubTask, invalidate, isCanceled, removeCancelListener, setCustomText, setExtraText, setTicks, setTicksCount, subTask, worked
private static final int PROGRESS_BAR_MAX
private int currentProgressValue
private ProgressRenderer delegate
public SwingRenderingProgressMonitor(ProgressRenderer delegate)
delegate
- the delegate which renders the progress information. Must not be null.java.lang.IllegalArgumentException
- if delegate is nullpublic void doBeginTask()
doBeginTask
in class AbstractProgressMonitor
public void doFinishTask()
doFinishTask
in class AbstractProgressMonitor
protected void updateProgress(double progressValue)
updateProgress
in class AbstractProgressMonitor
protected void doSetCustomText(java.lang.String title)
doSetCustomText
in class AbstractProgressMonitor
protected void doSetTitle(java.lang.String title)
doSetTitle
in class AbstractProgressMonitor
protected void doSetIntermediate(boolean value)
doSetIntermediate
in class AbstractProgressMonitor
public void setProgressTaskId(ProgressTaskId taskId)
ProgressMonitor
<> null
then "In background" button will be showntaskId
- the task IDpublic ProgressTaskId getProgressTaskId()
ProgressMonitor
public java.awt.Component getWindowParent()
ProgressMonitor