Package com.portal.app.comp
Class PDisplayOnRequestOptionMsgDlg
java.lang.Object
com.portal.app.comp.PDisplayOnRequestOptionMsgDlg
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Clears the list of "Don't display messages"static int
showDisplayOnRequestMsgDlg
(Component parent, int optionType, int messageType, String sTitle, String sMessage, String sProp) Displays the message dialog.
-
Field Details
-
HIDE_DIALOG
public static final int HIDE_DIALOG- See Also:
-
-
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 dialogoptionType
- defines the set of option buttons that will appearmessageType
- defines the type of messagesTitle
- title of the dialogsMessage
- message to be displayedsProp
- 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"
-