public class ChildProgress extends AbstractProgressMonitor
AbstractProgressMonitor.State
ProgressMonitor.CancelListener
Modifier and Type | Field and Description |
---|---|
private boolean |
internal |
private AbstractProgressMonitor |
parent |
state
ALL_TICKS, DEFAULT_TICKS
Constructor and Description |
---|
ChildProgress(AbstractProgressMonitor parent,
CancelHandler cancelHandler,
boolean internal)
Creates a new
ChildProgress |
Modifier and Type | Method and Description |
---|---|
protected void |
doBeginTask() |
protected void |
doFinishTask() |
protected void |
doSetCustomText(java.lang.String title) |
protected void |
doSetIntermediate(boolean value) |
protected void |
doSetTitle(java.lang.String title) |
AbstractProgressMonitor |
getParent()
Gets the parent task
|
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
|
boolean |
isInternal()
See if this is an internal task
|
void |
setProgressTaskId(ProgressTaskId taskId)
Set the task ID of the progress dialog
Should be used only by PleaseWaitRunnable.
|
protected void |
updateProgress(double value) |
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 final AbstractProgressMonitor parent
private final boolean internal
public ChildProgress(AbstractProgressMonitor parent, CancelHandler cancelHandler, boolean internal)
ChildProgress
parent
- The parent task that creates this progresscancelHandler
- The cancel handler to notify when this task is canceledinternal
- this is an internal task that will not modify the text that is displayed to the userpublic final AbstractProgressMonitor getParent()
public final boolean isInternal()
protected void updateProgress(double value)
updateProgress
in class AbstractProgressMonitor
protected void doBeginTask()
doBeginTask
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
protected void doFinishTask()
doFinishTask
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