Class PDisplayOnRequestOptionMsgDlg

java.lang.Object
com.portal.app.comp.PDisplayOnRequestOptionMsgDlg

public class PDisplayOnRequestOptionMsgDlg extends Object
Displays a message dialog that has a checkbox in addition to a message and a set of buttons. Checking the checkbox indicates that this message dialog will not appear again and is saved as part of user preferences for each user
  • Field Details

  • Constructor Details

    • PDisplayOnRequestOptionMsgDlg

      public PDisplayOnRequestOptionMsgDlg()
  • Method Details

    • showDisplayOnRequestMsgDlg

      public static int showDisplayOnRequestMsgDlg(Component parent, int optionType, int messageType, String sTitle, String sMessage, String sProp)
      Displays the message dialog.
      Parameters:
      parent - the parent of this dialog
      optionType - defines the set of option buttons that will appear
      messageType - defines the type of message
      sTitle - title of the dialog
      sMessage - message to be displayed
      sProp - the property associated with this dialog
      Returns:
      iOption returns HIDE_DIALOG if the dialog is already in the list. Otherwise returns one of the standard values

      The return values can be one of the following

      • JOptionPane.CLOSED_OPTION when the user clicks on the X,
      • JOptionPane.OK_OPTION,
      • JOptionPane.CANCEL_OPTION,
      • JOptionPane.YES_OPTION,
      • JOptionPane.NO_OPTION

      The option types that are supported by the class are

      • JOptionPane.YES_NO_OPTION,
      • JOptionPane.YES_NO_CANCEL_OPTION,
      • JOptionPane.OK_CANCEL_OPTION,
      • JOptionPane.DEFAULT_OPTION

    • clearMsgDialogList

      public static void clearMsgDialogList()
      Clears the list of "Don't display messages"