public class PreferenceYesNoSelectionDialog extends Object
| Modifier and Type | Field and Description |
|---|---|
protected JDialog |
dialog |
static int |
NO_SAVE_NO_VALUE |
static int |
NO_SAVE_YES_VALUE |
static int |
SAVE_NO_VALUE |
static int |
SAVE_YES_VALUE |
| Constructor and Description |
|---|
PreferenceYesNoSelectionDialog(Component parent,
String message,
int messageType,
String checkMessage,
String title,
Icon icon) |
| Modifier and Type | Method and Description |
|---|---|
int |
showDialog() |
static int |
showYesSelectionDialog(Component parent,
String message,
int messageType,
String checkMessage,
String title,
String preference,
Icon icon)
Creates and shows a new
PreferenceYesNoSelectionDialog when
is necessary. |
protected JDialog dialog
public static final int SAVE_YES_VALUE
public static final int NO_SAVE_YES_VALUE
public static final int SAVE_NO_VALUE
public static final int NO_SAVE_NO_VALUE
public int showDialog()
public static int showYesSelectionDialog(Component parent, String message, int messageType, String checkMessage, String title, String preference, Icon icon)
PreferenceYesNoSelectionDialog when
is necessary. First of all checks the preferences, if this preference
exists the dialog is not created, and returns preference value.parent - Parent componentmessage - messagemessageType - message typecheckMessage - message to show as label in the check to save the preferencetitle - Dialog titlepreference - Preference nameicon - Icon, if icon is null it uses a default oneCopyright © 2016 Imatia Innovation S.L.. All rights reserved.