Class HMProgressMonitorDialog
- java.lang.Object
-
- org.hortonmachine.gui.utils.monitor.HMProgressMonitorDialog
-
- All Implemented Interfaces:
PropertyChangeListener,EventListener
public abstract class HMProgressMonitorDialog extends Object implements PropertyChangeListener
Deprecated.UseActionWithProgressif possible.A progress dialog for long background jobs.- Author:
- Andrea Antonello (www.hydrologis.com)
-
-
Field Summary
Fields Modifier and Type Field Description protected StringBuilderfinalErrorSbDeprecated.protected StringBuilderfinalInfoSbDeprecated.protected ProgressMonitorprogressMonitorDeprecated.protected org.hortonmachine.gui.utils.monitor.HMProgressMonitorDialog.BackgroundTasktaskDeprecated.
-
Constructor Summary
Constructors Constructor Description HMProgressMonitorDialog(Component parent, String title, int workLoad)Deprecated.Create the monitor dialog.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected booleanisCancelled()Deprecated.static voidmain(String[] args)Deprecated.abstract voidpostDoneInUi()Deprecated.Execute something after the progress has finished in the UI thread.abstract voidprocessInBackground()Deprecated.Method inside which the job has to be done in background.voidpropertyChange(PropertyChangeEvent evt)Deprecated.Invoked when task's progress property changes.voidrun()Deprecated.Start the job with monitor dialog.voidsetProgress(int progress)Deprecated.voidsetProgressText(String text)Deprecated.
-
-
-
Field Detail
-
progressMonitor
protected ProgressMonitor progressMonitor
Deprecated.
-
task
protected org.hortonmachine.gui.utils.monitor.HMProgressMonitorDialog.BackgroundTask task
Deprecated.
-
finalInfoSb
protected StringBuilder finalInfoSb
Deprecated.
-
finalErrorSb
protected StringBuilder finalErrorSb
Deprecated.
-
-
Method Detail
-
run
public void run()
Deprecated.Start the job with monitor dialog.
-
processInBackground
public abstract void processInBackground() throws ExceptionDeprecated.Method inside which the job has to be done in background.- update progress bar with
progressMonitor.setProgress(0); - update progress text with
setProgressText("My message");
- Throws:
Exception
- update progress bar with
-
postDoneInUi
public abstract void postDoneInUi()
Deprecated.Execute something after the progress has finished in the UI thread.
-
isCancelled
protected boolean isCancelled()
Deprecated.
-
setProgressText
public void setProgressText(String text)
Deprecated.
-
setProgress
public void setProgress(int progress)
Deprecated.
-
propertyChange
public void propertyChange(PropertyChangeEvent evt)
Deprecated.Invoked when task's progress property changes.- Specified by:
propertyChangein interfacePropertyChangeListener
-
main
public static void main(String[] args)
Deprecated.
-
-