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.String
customText
private java.lang.String
title
-
Constructor Summary
Constructors Constructor Description BackgroundProgressMonitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendLogMessage(java.lang.String message)
Append a message to the progress logvoid
setCurrentAction(java.lang.String text)
Sets the current action that is donevoid
setCustomText(java.lang.String text)
Sets the description of what is donevoid
setIndeterminate(boolean newValue)
Display that the current progress cannot be determinedvoid
setVisible(boolean visible)
Sets the visibility of this dialogvoid
updateProgress(int progress)
Updates the progress value to the specified progress.private void
updateText()
-
-
-
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.ProgressMonitorDialog
Sets the visibility of this dialog- Specified by:
setVisible
in interfacePleaseWaitProgressMonitor.ProgressMonitorDialog
- Parameters:
visible
- The visibility,true
to show it,false
to hide it
-
updateProgress
public void updateProgress(int progress)
Description copied from interface:PleaseWaitProgressMonitor.ProgressMonitorDialog
Updates the progress value to the specified progress.- Specified by:
updateProgress
in 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.ProgressMonitorDialog
Sets the description of what is done- Specified by:
setCustomText
in interfacePleaseWaitProgressMonitor.ProgressMonitorDialog
- Parameters:
text
- The description of the task
-
setCurrentAction
public void setCurrentAction(java.lang.String text)
Description copied from interface:PleaseWaitProgressMonitor.ProgressMonitorDialog
Sets the current action that is done- Specified by:
setCurrentAction
in interfacePleaseWaitProgressMonitor.ProgressMonitorDialog
- Parameters:
text
- The current action
-
setIndeterminate
public void setIndeterminate(boolean newValue)
Description copied from interface:PleaseWaitProgressMonitor.ProgressMonitorDialog
Display that the current progress cannot be determined- Specified by:
setIndeterminate
in interfacePleaseWaitProgressMonitor.ProgressMonitorDialog
- Parameters:
newValue
- whether the progress cannot be determined
-
appendLogMessage
public void appendLogMessage(java.lang.String message)
Description copied from interface:PleaseWaitProgressMonitor.ProgressMonitorDialog
Append a message to the progress logTODO Not implemented properly in background monitor, log message will get lost if progress runs in background
- Specified by:
appendLogMessage
in interfacePleaseWaitProgressMonitor.ProgressMonitorDialog
- Parameters:
message
- The message
-
-