Class AbstractWaitDialog

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

public abstract class AbstractWaitDialog extends JDialog
Shows a modal dialog while an operating is in process
Since:
1.0
Author:
Eduardo Montero Ruiz - emontero@saig.es
See Also:
  • Field Details

    • errorMessage

      protected String errorMessage
      Method execution error message, if any
  • Constructor Details

    • AbstractWaitDialog

      public AbstractWaitDialog(JFrame parent, String title)
      Parameters:
      parent - the parent JFrame
      title - the JFrame title
  • Method Details

    • methodToPerform

      protected abstract void methodToPerform() throws Exception
      Executes in the wait dialog
      Throws:
      Exception
    • getErrorMessage

      public String getErrorMessage()
      Gets the error message associate with the execution, if any
      Returns:
      String - Empty string if there is no error message, the exception message otherwise