Class WarnOnceDialog

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

public class WarnOnceDialog extends PamDialog
Part of a managed warning system. Would only be called from within WarnOnce
Author:
Doug Gillespie
See Also:
  • Constructor Details Link icon

    • WarnOnceDialog Link icon

      protected WarnOnceDialog(Window parentFrame, String title, String message, int messageType, String helpPoint)
    • WarnOnceDialog Link icon

      protected WarnOnceDialog(Window parentFrame, String title, String message, int messageType, String helpPoint, Throwable error)
    • WarnOnceDialog Link icon

      protected WarnOnceDialog(Window parentFrame, String title, String message, int messageType, String helpPoint, Throwable error, String okButtonText, String cancelButtonText)
      Dialog with all the options
      Parameters:
      parentFrame - the frame to center this dialog in - can be null
      title - the title of the dialog
      message - the message to show in the dialog
      messageType - the type of dialog (WarnOnce.OK_CANCEL_OPTION, WarnOnce.OK_Option or WarnOnce.WARNING_MESSAGE )
      helpPoint - Pointer into help file for additional information
      error - an error that may have caused this dialog to be displayed. Can be null if there was no error
      okButtonText - the text to use for the ok button instead of OK. If null, the text will stay OK
      cancelButtonText - the text to use for the cancel button instead of Cancel. If null, the text will stay Cancel
  • Method Details Link icon

    • getParams Link icon

      public boolean getParams()
      Description copied from class: PamDialog
      called when the Ok button is pressed. This must return true in order that the dialog may close. It should also copy all parameters into an object that will be returned by showDialog.
      Specified by:
      getParams in class PamDialog
    • cancelButtonPressed Link icon

      public void cancelButtonPressed()
      Description copied from class: PamDialog
      called when the cancel button is pressed before the dialog closes. Generally you should set the parameters returned by the dialog to null or some default value, or in some other way indicate that Cancel was pressed.
      Specified by:
      cancelButtonPressed in class PamDialog
    • restoreDefaultSettings Link icon

      public void restoreDefaultSettings()
      Description copied from class: PamDialog
      standard function which should us used to copy default parameters into the dialog controls.
      Specified by:
      restoreDefaultSettings in class PamDialog
    • getAnswer Link icon

      public int getAnswer()
      Returns:
      the answer
    • isShowAgain Link icon

      public boolean isShowAgain()
    • isShowThisSess Link icon

      public Boolean isShowThisSess()
      Returns: