Class IrisProgressDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class IrisProgressDialog extends JDialog
Generic progress dialog for use with Iris components that need to give feedback to the user. You may optionally display the dialog with a delay, to help avoid transient flashing.
See Also:
  • Constructor Details

  • Method Details

    • setLabelText

      public void setLabelText(String labelText)
    • setVisibleWithDelay

      public void setVisibleWithDelay(int delay)
      Sets this dialog visible, but not right away so that we are less likely to have a "flash" dialog. Call dispose() afterwards to either avoid displaying the dialog, or closing it, if delay has already passed.
      Parameters:
      delay - number of milliseconds to wait before displaying dialog
    • dispose

      public void dispose()
      Call this to dispose of the dialog; the complete flag is set to true, so the dialog will not be displayed if the action took less time than the required delay.
      Overrides:
      dispose in class Window
    • setIndeterminate

      public void setIndeterminate(boolean newValue)
    • setValue

      public void setValue(int n)
    • setMinimum

      public void setMinimum(int n)
    • setMaximum

      public void setMaximum(int n)
    • getValue

      public int getValue()
    • getMinimum

      public int getMinimum()
    • getMaximum

      public int getMaximum()
    • addButton

      public void addButton(String name, ActionListener listener)
      Adds a button to the bottom of the panel with the given name and action listener.
      Parameters:
      name - the name of the button
      listener - the action listner for the button click