Class HMProgressMonitorDialog

    • Field Detail

      • task

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

      • HMProgressMonitorDialog

        public HMProgressMonitorDialog​(Component parent,
                                       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 Detail

      • run

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

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

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

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