| java.lang.Object edu.rice.cs.util.swing.ConfirmCheckBoxDialog
ConfirmCheckBoxDialog | public class ConfirmCheckBoxDialog (Code) | | Simple class wrapping JOptionPane to have a checkbox underneath the message.
version: $Id: ConfirmCheckBoxDialog.java 4255 2007-08-28 19:17:37Z mgricken $ |
Constructor Summary | |
public | ConfirmCheckBoxDialog(JFrame parent, String title, Object message) Instantiates a new confirm dialog with default checkbox text.
Parameters: parent - the parent frame Parameters: title - the title of the dialog Parameters: message - the stuff to display in the body of the dialog. | public | ConfirmCheckBoxDialog(JFrame parent, String title, Object message, String checkBoxText) Instantiates a new confirm dialog with Yes/No as the options.
Parameters: parent - the parent frame Parameters: title - the title of the dialog Parameters: message - the stuff to display in the body of the dialog. | public | ConfirmCheckBoxDialog(JFrame parent, String title, Object message, String checkBoxText, int messageType, int optionType) Instantiates a new confirm dialog with Yes/No as the options.
Parameters: parent - The parent frame Parameters: title - The title of the dialog Parameters: message - The stuff to display in the body of the dialog. |
Method Summary | |
public boolean | getCheckBoxValue() Gets the selected value of the check box. | public int | show() Shows the dialog. |
ConfirmCheckBoxDialog | public ConfirmCheckBoxDialog(JFrame parent, String title, Object message)(Code) | | Instantiates a new confirm dialog with default checkbox text.
Parameters: parent - the parent frame Parameters: title - the title of the dialog Parameters: message - the stuff to display in the body of the dialog. For a simple message, it should be a String; it canalso be an Object[] including Strings and Components to display in the body of the dialog. |
ConfirmCheckBoxDialog | public ConfirmCheckBoxDialog(JFrame parent, String title, Object message, String checkBoxText)(Code) | | Instantiates a new confirm dialog with Yes/No as the options.
Parameters: parent - the parent frame Parameters: title - the title of the dialog Parameters: message - the stuff to display in the body of the dialog. For a simple message, it should be a String; it canalso be an Object[] including Strings and Components to display in the body of the dialog. Parameters: checkBoxText - the text to display with the checkbox |
ConfirmCheckBoxDialog | public ConfirmCheckBoxDialog(JFrame parent, String title, Object message, String checkBoxText, int messageType, int optionType)(Code) | | Instantiates a new confirm dialog with Yes/No as the options.
Parameters: parent - The parent frame Parameters: title - The title of the dialog Parameters: message - The stuff to display in the body of the dialog. For a simple message, it should be a String; it canalso be an Object[] including Strings and Components to display in the body of the dialog. Parameters: checkBoxText - The text to display with the checkbox Parameters: messageType - The JOptionPane message type Parameters: optionType - The JOptionPane option type |
getCheckBoxValue | public boolean getCheckBoxValue()(Code) | | Gets the selected value of the check box. Should not be called until
the dialog is shown.
the value of the checkbox |
show | public int show()(Code) | | Shows the dialog.
the JOptionPane result of showing the dialog. |
|
|