|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rice.cs.util.swing.ConfirmCheckBoxDialog
public class ConfirmCheckBoxDialog
Simple class wrapping JOptionPane to have a checkbox underneath the message.
Constructor Summary | |
---|---|
ConfirmCheckBoxDialog(JFrame parent,
String title,
Object message)
Instantiates a new confirm dialog with default checkbox text. |
|
ConfirmCheckBoxDialog(JFrame parent,
String title,
Object message,
String checkBoxText)
Instantiates a new confirm dialog with Yes/No as the options. |
|
ConfirmCheckBoxDialog(JFrame parent,
String title,
Object message,
String checkBoxText,
int messageType,
int optionType)
Instantiates a new confirm dialog with Yes/No as the options. |
Method Summary | |
---|---|
boolean |
getCheckBoxValue()
Gets the selected value of the check box. |
int |
show()
Shows the dialog. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfirmCheckBoxDialog(JFrame parent, String title, Object message)
parent
- the parent frametitle
- the title of the dialogmessage
- the stuff to display in the body of the dialog. For a simple message, it should be a String; it can
also be an Object[] including Strings and Components to display in the body of the dialog.public ConfirmCheckBoxDialog(JFrame parent, String title, Object message, String checkBoxText)
parent
- the parent frametitle
- the title of the dialogmessage
- the stuff to display in the body of the dialog. For a simple message, it should be a String; it can
also be an Object[] including Strings and Components to display in the body of the dialog.checkBoxText
- the text to display with the checkboxpublic ConfirmCheckBoxDialog(JFrame parent, String title, Object message, String checkBoxText, int messageType, int optionType)
parent
- The parent frametitle
- The title of the dialogmessage
- The stuff to display in the body of the dialog. For a simple message, it should be a String; it can
also be an Object[] including Strings and Components to display in the body of the dialog.checkBoxText
- The text to display with the checkboxmessageType
- The JOptionPane message typeoptionType
- The JOptionPane option typeMethod Detail |
---|
public int show()
public boolean getCheckBoxValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |