Package rma.swing

Class ProgressIndicator

All Implemented Interfaces:
UserInterface, ComponentListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, Modifiable

public class ProgressIndicator extends RmaJDialog implements UserInterface
Class Description
See Also:
  • Constructor Details

    • ProgressIndicator

      public ProgressIndicator(JFrame parent, long max, String title)
      Constructor for the ProgressIndicator object
      Parameters:
      parent - parent frame
      max - max size of progress
      title - dialog title
    • ProgressIndicator

      public ProgressIndicator(JDialog parent, long max, String title)
  • Method Details

    • buildControls

      protected void buildControls(String title)
    • setProgress

      public void setProgress(int i)
      Sets the Progress attribute of the ProgressIndicator object
      Specified by:
      setProgress in interface UserInterface
      Parameters:
      i - The new Progress value
    • setRunnable

      public void setRunnable(Runnable run)
      Sets the Runnable attribute of the ProgressIndicator object
      Parameters:
      run - The new Runnable value
    • setVisible

      public void setVisible(boolean b)
      Sets the Visible attribute of the ProgressIndicator object
      Overrides:
      setVisible in class RmaJDialog
      Parameters:
      b - The new Visible value
    • done

      public void done(Object obj)
      Method Description
      Parameters:
      obj - Description
    • isCanceled

      public boolean isCanceled()
      Gets the Canceled attribute of the ProgressIndicator object
      Specified by:
      isCanceled in interface UserInterface
      Returns:
      The Canceled value
    • computeComplete

      public void computeComplete()
      Method Description
      Specified by:
      computeComplete in interface UserInterface
    • printErrorMessage

      public void printErrorMessage(String msg)
      print an Error message
      Specified by:
      printErrorMessage in interface UserInterface
      Parameters:
      msg - error message
    • printWarningMessage

      public void printWarningMessage(String msg)
      print a warning message
      Specified by:
      printWarningMessage in interface UserInterface
      Parameters:
      msg - warning message
    • printStatus

      public void printStatus(String statusMsg)
      print a status message
      Specified by:
      printStatus in interface UserInterface
      Parameters:
      statusMsg - status message
    • printMessage

      public void printMessage(String msg)
      print a message
      Specified by:
      printMessage in interface UserInterface
      Parameters:
      msg - message
    • setIndeterminate

      public void setIndeterminate(boolean indeterminate)
    • setText

      public void setText(String text)