public class SwingRenderingProgressMonitor extends AbstractProgressMonitor
ProgressRenderer.
Methods of the progress renderer are always called on the Swing EDT.AbstractProgressMonitor.StateProgressMonitor.CancelListener| Modifier and Type | Field and Description |
|---|---|
private int |
currentProgressValue |
private ProgressRenderer |
delegate |
private static int |
PROGRESS_BAR_MAX |
state, ticks, ticksCountALL_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, workedprivate 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 - thrown if delegate is nullpublic void doBeginTask()
doBeginTask in class AbstractProgressMonitorpublic void doFinishTask()
doFinishTask in class AbstractProgressMonitorprotected void updateProgress(double progressValue)
updateProgress in class AbstractProgressMonitorprotected void doSetCustomText(java.lang.String title)
doSetCustomText in class AbstractProgressMonitorprotected void doSetTitle(java.lang.String title)
doSetTitle in class AbstractProgressMonitorprotected void doSetIntermediate(boolean value)
doSetIntermediate in class AbstractProgressMonitorpublic void setProgressTaskId(ProgressTaskId taskId)
ProgressMonitor<> null then "In background" button will be showntaskId - the task IDpublic ProgressTaskId getProgressTaskId()
ProgressMonitorpublic java.awt.Component getWindowParent()
ProgressMonitor