ActionWithProgress if possible.public abstract class HMProgressMonitorDialog extends Object implements PropertyChangeListener
| Modifier and Type | Field and Description |
|---|---|
protected StringBuilder |
finalErrorSb
Deprecated.
|
protected StringBuilder |
finalInfoSb
Deprecated.
|
protected ProgressMonitor |
progressMonitor
Deprecated.
|
protected org.hortonmachine.gui.utils.monitor.HMProgressMonitorDialog.BackgroundTask |
task
Deprecated.
|
| Constructor and Description |
|---|
HMProgressMonitorDialog(Component parent,
String title,
int workLoad)
Deprecated.
Create the monitor dialog.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isCancelled()
Deprecated.
|
static void |
main(String[] args)
Deprecated.
|
abstract void |
postDoneInUi()
Deprecated.
Execute something after the progress has finished in the UI thread.
|
abstract void |
processInBackground()
Deprecated.
Method inside which the job has to be done in background.
|
void |
propertyChange(PropertyChangeEvent evt)
Deprecated.
Invoked when task's progress property changes.
|
void |
run()
Deprecated.
Start the job with monitor dialog.
|
void |
setProgress(int progress)
Deprecated.
|
void |
setProgressText(String text)
Deprecated.
|
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-2019 HydroloGIS. All Rights Reserved.