Class HMProgressMonitorDialog

java.lang.Object
org.hortonmachine.gui.utils.monitor.HMProgressMonitorDialog
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener

public abstract class HMProgressMonitorDialog
extends java.lang.Object
implements java.beans.PropertyChangeListener
Deprecated.
Use ActionWithProgress if possible.
A progress dialog for long background jobs.
Author:
Andrea Antonello (www.hydrologis.com)
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.lang.StringBuilder finalErrorSb
    Deprecated.
     
    protected java.lang.StringBuilder finalInfoSb
    Deprecated.
     
    protected javax.swing.ProgressMonitor progressMonitor
    Deprecated.
     
    protected org.hortonmachine.gui.utils.monitor.HMProgressMonitorDialog.BackgroundTask task
    Deprecated.
     
  • Constructor Summary

    Constructors 
    Constructor Description
    HMProgressMonitorDialog​(java.awt.Component parent, java.lang.String title, int workLoad)
    Deprecated.
    Create the monitor dialog.
  • Method Summary

    Modifier and Type Method Description
    protected boolean isCancelled()
    Deprecated.
     
    static void main​(java.lang.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​(java.beans.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​(java.lang.String text)
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • progressMonitor

      protected javax.swing.ProgressMonitor progressMonitor
      Deprecated.
    • task

      protected org.hortonmachine.gui.utils.monitor.HMProgressMonitorDialog.BackgroundTask task
      Deprecated.
    • finalInfoSb

      protected java.lang.StringBuilder finalInfoSb
      Deprecated.
    • finalErrorSb

      protected java.lang.StringBuilder finalErrorSb
      Deprecated.
  • Constructor Details

    • HMProgressMonitorDialog

      public HMProgressMonitorDialog​(java.awt.Component parent, java.lang.String title, int workLoad)
      Deprecated.
      Create the monitor dialog.
      Parameters:
      parent - the parent component.
      title - the title of the monitor dialog.
      workLoad - the maximum work to do.
  • Method Details

    • run

      public void run()
      Deprecated.
      Start the job with monitor dialog.
    • processInBackground

      public abstract void processInBackground() throws java.lang.Exception
      Deprecated.
      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:
      java.lang.Exception
    • 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​(java.lang.String text)
      Deprecated.
    • setProgress

      public void setProgress​(int progress)
      Deprecated.
    • propertyChange

      public void propertyChange​(java.beans.PropertyChangeEvent evt)
      Deprecated.
      Invoked when task's progress property changes.
      Specified by:
      propertyChange in interface java.beans.PropertyChangeListener
    • main

      public static void main​(java.lang.String[] args)
      Deprecated.