Class ProgressMonitor

java.lang.Object
org.hortonmachine.gui.utils.monitor.ProgressMonitor
All Implemented Interfaces:
org.hortonmachine.gears.libs.monitor.IHMProgressMonitor

public class ProgressMonitor
extends java.lang.Object
implements org.hortonmachine.gears.libs.monitor.IHMProgressMonitor
MySwing: Advanced Swing Utilites Copyright (C) 2005 Santhosh Kumar T

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

  • Field Summary

    Fields inherited from interface org.hortonmachine.gears.libs.monitor.IHMProgressMonitor

    UNKNOWN
  • Constructor Summary

    Constructors 
    Constructor Description
    ProgressMonitor​(int total, boolean indeterminate)  
    ProgressMonitor​(int total, boolean indeterminate, int milliSecondsToWait)  
  • Method Summary

    Modifier and Type Method Description
    <T> T adapt​(java.lang.Class<T> adaptee)  
    void addChangeListener​(javax.swing.event.ChangeListener listener)  
    void beginTask​(java.lang.String name, int totalWork)  
    void done()  
    void errorMessage​(java.lang.String message)  
    void exceptionThrown​(java.lang.String message)  
    int getCurrent()  
    int getMilliSecondsToWait()  
    java.lang.String getStatus()  
    int getTotal()  
    void internalWorked​(double work)  
    boolean isCanceled()  
    boolean isIndeterminate()  
    void message​(java.lang.String message)  
    void onModuleExit()  
    void removeChangeListener​(javax.swing.event.ChangeListener listener)  
    void setCanceled​(boolean value)  
    void setCurrent​(java.lang.String status, int current)  
    void setTaskName​(java.lang.String name)  
    void start​(java.lang.String status)  
    void subTask​(java.lang.String name)  
    void worked​(int work)  

    Methods inherited from class java.lang.Object

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

    • ProgressMonitor

      public ProgressMonitor​(int total, boolean indeterminate, int milliSecondsToWait)
    • ProgressMonitor

      public ProgressMonitor​(int total, boolean indeterminate)
  • Method Details

    • getTotal

      public int getTotal()
    • start

      public void start​(java.lang.String status)
    • beginTask

      public void beginTask​(java.lang.String name, int totalWork)
      Specified by:
      beginTask in interface org.hortonmachine.gears.libs.monitor.IHMProgressMonitor
    • getMilliSecondsToWait

      public int getMilliSecondsToWait()
    • getCurrent

      public int getCurrent()
    • getStatus

      public java.lang.String getStatus()
    • isIndeterminate

      public boolean isIndeterminate()
    • setCurrent

      public void setCurrent​(java.lang.String status, int current)
    • addChangeListener

      public void addChangeListener​(javax.swing.event.ChangeListener listener)
    • removeChangeListener

      public void removeChangeListener​(javax.swing.event.ChangeListener listener)
    • message

      public void message​(java.lang.String message)
      Specified by:
      message in interface org.hortonmachine.gears.libs.monitor.IHMProgressMonitor
    • errorMessage

      public void errorMessage​(java.lang.String message)
      Specified by:
      errorMessage in interface org.hortonmachine.gears.libs.monitor.IHMProgressMonitor
    • exceptionThrown

      public void exceptionThrown​(java.lang.String message)
      Specified by:
      exceptionThrown in interface org.hortonmachine.gears.libs.monitor.IHMProgressMonitor
    • done

      public void done()
      Specified by:
      done in interface org.hortonmachine.gears.libs.monitor.IHMProgressMonitor
    • internalWorked

      public void internalWorked​(double work)
      Specified by:
      internalWorked in interface org.hortonmachine.gears.libs.monitor.IHMProgressMonitor
    • isCanceled

      public boolean isCanceled()
      Specified by:
      isCanceled in interface org.hortonmachine.gears.libs.monitor.IHMProgressMonitor
    • setCanceled

      public void setCanceled​(boolean value)
      Specified by:
      setCanceled in interface org.hortonmachine.gears.libs.monitor.IHMProgressMonitor
    • setTaskName

      public void setTaskName​(java.lang.String name)
      Specified by:
      setTaskName in interface org.hortonmachine.gears.libs.monitor.IHMProgressMonitor
    • subTask

      public void subTask​(java.lang.String name)
      Specified by:
      subTask in interface org.hortonmachine.gears.libs.monitor.IHMProgressMonitor
    • worked

      public void worked​(int work)
      Specified by:
      worked in interface org.hortonmachine.gears.libs.monitor.IHMProgressMonitor
    • adapt

      public <T> T adapt​(java.lang.Class<T> adaptee)
      Specified by:
      adapt in interface org.hortonmachine.gears.libs.monitor.IHMProgressMonitor
    • onModuleExit

      public void onModuleExit()
      Specified by:
      onModuleExit in interface org.hortonmachine.gears.libs.monitor.IHMProgressMonitor