public abstract class HMProgressMonitorDialog extends Object implements PropertyChangeListener
| Modifier and Type | Field and Description |
|---|---|
protected StringBuilder |
finalErrorSb |
protected StringBuilder |
finalInfoSb |
protected ProgressMonitor |
progressMonitor |
protected org.hortonmachine.gui.utils.monitor.HMProgressMonitorDialog.BackgroundTask |
task |
| Constructor and Description |
|---|
HMProgressMonitorDialog(Component parent,
String title,
int workLoad)
Create the monitor dialog.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isCancelled() |
static void |
main(String[] args) |
abstract void |
postDoneInUi()
Execute something after the progress has finished in the UI thread.
|
abstract void |
processInBackground()
Method inside which the job has to be done in background.
|
void |
propertyChange(PropertyChangeEvent evt)
Invoked when task's progress property changes.
|
void |
run()
Start the job with monitor dialog.
|
void |
setProgress(int progress) |
void |
setProgressText(String text) |
protected ProgressMonitor progressMonitor
protected org.hortonmachine.gui.utils.monitor.HMProgressMonitorDialog.BackgroundTask task
protected StringBuilder finalInfoSb
protected StringBuilder finalErrorSb
public void run()
public abstract void processInBackground()
throws Exception
progressMonitor.setProgress(0);setProgressText("My message");Exceptionpublic abstract void postDoneInUi()
protected boolean isCancelled()
public void setProgressText(String text)
public void setProgress(int progress)
public void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerpublic static void main(String[] args)
Copyright © 2005-2018 HydroloGIS. All Rights Reserved.