Class ChildProgress
java.lang.Object
org.openstreetmap.josm.gui.progress.AbstractProgressMonitor
org.openstreetmap.josm.gui.progress.ChildProgress
- All Implemented Interfaces:
ProgressMonitor
The progress of a sub task
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openstreetmap.josm.gui.progress.AbstractProgressMonitor
AbstractProgressMonitor.StateNested classes/interfaces inherited from interface org.openstreetmap.josm.gui.progress.ProgressMonitor
ProgressMonitor.CancelListener -
Field Summary
FieldsFields inherited from class org.openstreetmap.josm.gui.progress.AbstractProgressMonitor
stateFields inherited from interface org.openstreetmap.josm.gui.progress.ProgressMonitor
ALL_TICKS, DEFAULT_TICKS -
Constructor Summary
ConstructorsConstructorDescriptionChildProgress(AbstractProgressMonitor parent, CancelHandler cancelHandler, boolean internal) Creates a newChildProgress -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected voiddoSetCustomText(String title) protected voiddoSetIntermediate(boolean value) protected voiddoSetTitle(String title) final AbstractProgressMonitorGets the parent taskReturns the task ID of the progress dialog Should be used only by PleaseWaitRunnableReturn the parent windows of progress dialogfinal booleanSee if this is an internal taskvoidsetProgressTaskId(ProgressTaskId taskId) Set the task ID of the progress dialog Should be used only by PleaseWaitRunnable.protected voidupdateProgress(double value) Update progress messageMethods inherited from class org.openstreetmap.josm.gui.progress.AbstractProgressMonitor
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
-
Field Details
-
parent
-
internal
-
-
Constructor Details
-
ChildProgress
Creates a newChildProgress- Parameters:
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 user
-
-
Method Details
-
getParent
Gets the parent task- Returns:
- The parent task
-
isInternal
See if this is an internal task- Returns:
- True if this task should not modify the text that is displayed to the user
-
updateProgress
Description copied from class:AbstractProgressMonitorUpdate progress message- Specified by:
updateProgressin classAbstractProgressMonitor- Parameters:
value- The percentage of completion (this and child progress)
-
doBeginTask
- Specified by:
doBeginTaskin classAbstractProgressMonitor
-
doSetCustomText
- Specified by:
doSetCustomTextin classAbstractProgressMonitor
-
doSetTitle
- Specified by:
doSetTitlein classAbstractProgressMonitor
-
doSetIntermediate
- Specified by:
doSetIntermediatein classAbstractProgressMonitor
-
doFinishTask
- Specified by:
doFinishTaskin classAbstractProgressMonitor
-
setProgressTaskId
Description copied from interface:ProgressMonitorSet the task ID of the progress dialog Should be used only by PleaseWaitRunnable. If taskId<> nullthen "In background" button will be shown- Parameters:
taskId- the task ID
-
getProgressTaskId
Description copied from interface:ProgressMonitorReturns the task ID of the progress dialog Should be used only by PleaseWaitRunnable- Returns:
- the task ID
-
getWindowParent
Description copied from interface:ProgressMonitorReturn the parent windows of progress dialog- Returns:
- component suitable as parent for dialogs that wants to be shown in front of progress dialog
-