public class MapStatus.BackgroundProgressMonitor extends java.lang.Object implements PleaseWaitProgressMonitor.ProgressMonitorDialog
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
customText |
private java.lang.String |
title |
Constructor and Description |
---|
BackgroundProgressMonitor() |
Modifier and Type | Method and Description |
---|---|
void |
appendLogMessage(java.lang.String message)
Append a message to the progress log
|
void |
setCurrentAction(java.lang.String text)
Sets the current action that is done
|
void |
setCustomText(java.lang.String text)
Sets the description of what is done
|
void |
setIndeterminate(boolean newValue)
Display that the current progress cannot be determined
|
void |
setVisible(boolean visible)
Sets the visibility of this dialog
|
void |
updateProgress(int progress)
Updates the progress value to the specified progress.
|
private void |
updateText() |
private java.lang.String title
private java.lang.String customText
public BackgroundProgressMonitor()
private void updateText()
public void setVisible(boolean visible)
PleaseWaitProgressMonitor.ProgressMonitorDialog
setVisible
in interface PleaseWaitProgressMonitor.ProgressMonitorDialog
visible
- The visibility, true
to show it, false
to hide itpublic void updateProgress(int progress)
PleaseWaitProgressMonitor.ProgressMonitorDialog
updateProgress
in interface PleaseWaitProgressMonitor.ProgressMonitorDialog
progress
- The progress as integer. Between 0 and PleaseWaitProgressMonitor.PROGRESS_BAR_MAX
public void setCustomText(java.lang.String text)
PleaseWaitProgressMonitor.ProgressMonitorDialog
setCustomText
in interface PleaseWaitProgressMonitor.ProgressMonitorDialog
text
- The description of the taskpublic void setCurrentAction(java.lang.String text)
PleaseWaitProgressMonitor.ProgressMonitorDialog
setCurrentAction
in interface PleaseWaitProgressMonitor.ProgressMonitorDialog
text
- The current actionpublic void setIndeterminate(boolean newValue)
PleaseWaitProgressMonitor.ProgressMonitorDialog
setIndeterminate
in interface PleaseWaitProgressMonitor.ProgressMonitorDialog
newValue
- whether the progress cannot be determinedpublic void appendLogMessage(java.lang.String message)
PleaseWaitProgressMonitor.ProgressMonitorDialog
TODO Not implemented properly in background monitor, log message will get lost if progress runs in background
appendLogMessage
in interface PleaseWaitProgressMonitor.ProgressMonitorDialog
message
- The message