java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
org.pentaho.reporting.libraries.designtime.swing.background.WaitDialog
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class WaitDialog extends JDialog
A dialog which will indicate to the user that an operation is being performed and will provide them an opportunity to try and cancel that operation. This will create and run in a separate thread so that the user and the background operation will not have to wait for completion.
See Also:
  • Constructor Details

    • WaitDialog

      public WaitDialog()
    • WaitDialog

      public WaitDialog(Dialog parent)
    • WaitDialog

      public WaitDialog(Frame parent)
  • Method Details

    • addCancelListener

      public void addCancelListener(CancelListener listener)
    • removeCancelListener

      public void removeCancelListener(CancelListener listener)
    • reinitComponents

      public void reinitComponents()
    • showDialog

      public void showDialog(boolean showCancel, boolean showProgress)
    • isShowProgressbar

      public boolean isShowProgressbar()
    • setShowProgressbar

      public void setShowProgressbar(boolean showProgressbar)
    • isShowCancelButton

      public boolean isShowCancelButton()
    • setShowCancelButton

      public void setShowCancelButton(boolean showCancelButton)
    • getProgress

      public double getProgress()
    • setProgress

      public void setProgress(double p)
    • updateProgress

      public void updateProgress(double p)
    • setMessage

      public void setMessage(String message)
    • exit

      public void exit()
      Indicates that the thread processing is complete and this dialog should close