Package org.openstreetmap.josm.gui
Class MapStatus.BackgroundProgressMonitor
- java.lang.Object
-
- org.openstreetmap.josm.gui.MapStatus.BackgroundProgressMonitor
-
- All Implemented Interfaces:
PleaseWaitProgressMonitor.ProgressMonitorDialog
- Enclosing class:
- MapStatus
public class MapStatus.BackgroundProgressMonitor extends java.lang.Object implements PleaseWaitProgressMonitor.ProgressMonitorDialog
The progress monitor that is used to display the progress if the user selects to run in background
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringcustomTextprivate java.lang.Stringtitle
-
Constructor Summary
Constructors Constructor Description BackgroundProgressMonitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendLogMessage(java.lang.String message)Append a message to the progress logvoidsetCurrentAction(java.lang.String text)Sets the current action that is donevoidsetCustomText(java.lang.String text)Sets the description of what is donevoidsetIndeterminate(boolean newValue)Display that the current progress cannot be determinedvoidsetVisible(boolean visible)Sets the visibility of this dialogvoidupdateProgress(int progress)Updates the progress value to the specified progress.private voidupdateText()
-
-
-
Field Detail
-
title
private java.lang.String title
-
customText
private java.lang.String customText
-
-
Constructor Detail
-
BackgroundProgressMonitor
public BackgroundProgressMonitor()
-
-
Method Detail
-
updateText
private void updateText()
-
setVisible
public void setVisible(boolean visible)
Description copied from interface:PleaseWaitProgressMonitor.ProgressMonitorDialogSets the visibility of this dialog- Specified by:
setVisiblein interfacePleaseWaitProgressMonitor.ProgressMonitorDialog- Parameters:
visible- The visibility,trueto show it,falseto hide it
-
updateProgress
public void updateProgress(int progress)
Description copied from interface:PleaseWaitProgressMonitor.ProgressMonitorDialogUpdates the progress value to the specified progress.- Specified by:
updateProgressin interfacePleaseWaitProgressMonitor.ProgressMonitorDialog- Parameters:
progress- The progress as integer. Between 0 andPleaseWaitProgressMonitor.PROGRESS_BAR_MAX
-
setCustomText
public void setCustomText(java.lang.String text)
Description copied from interface:PleaseWaitProgressMonitor.ProgressMonitorDialogSets the description of what is done- Specified by:
setCustomTextin interfacePleaseWaitProgressMonitor.ProgressMonitorDialog- Parameters:
text- The description of the task
-
setCurrentAction
public void setCurrentAction(java.lang.String text)
Description copied from interface:PleaseWaitProgressMonitor.ProgressMonitorDialogSets the current action that is done- Specified by:
setCurrentActionin interfacePleaseWaitProgressMonitor.ProgressMonitorDialog- Parameters:
text- The current action
-
setIndeterminate
public void setIndeterminate(boolean newValue)
Description copied from interface:PleaseWaitProgressMonitor.ProgressMonitorDialogDisplay that the current progress cannot be determined- Specified by:
setIndeterminatein interfacePleaseWaitProgressMonitor.ProgressMonitorDialog- Parameters:
newValue- whether the progress cannot be determined
-
appendLogMessage
public void appendLogMessage(java.lang.String message)
Description copied from interface:PleaseWaitProgressMonitor.ProgressMonitorDialogAppend a message to the progress logTODO Not implemented properly in background monitor, log message will get lost if progress runs in background
- Specified by:
appendLogMessagein interfacePleaseWaitProgressMonitor.ProgressMonitorDialog- Parameters:
message- The message
-
-