jpicedt.ui.dialog
Enum YesNoAskMe
java.lang.Object
java.lang.Enum<YesNoAskMe>
jpicedt.ui.dialog.YesNoAskMe
- All Implemented Interfaces:
- Serializable, Comparable<YesNoAskMe>
public enum YesNoAskMe
- extends Enum<YesNoAskMe>
Énuméré donnant trois options pour reconfirmation par l'utilisateur:
YES
- la conformation est affirmée automatiquement sans demander à
l'utilisateur
NO
- la confirmation est infirmée automatiquement sans demander à l'utilisateur
ASK_ME
- l'utilisateur est consulté
- Since:
- jPicEdt 1.6
- Version:
- $Id: YesNoAskMe.java,v 1.4 2013/03/27 07:20:10 vincentb1 Exp $
- Author:
- Vincent Belaïche
YES
public static final YesNoAskMe YES
NO
public static final YesNoAskMe NO
ASK_ME
public static final YesNoAskMe ASK_ME
values
public static YesNoAskMe[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (YesNoAskMe c : YesNoAskMe.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static YesNoAskMe valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getDefault
public static YesNoAskMe getDefault()
toYesNoAskMe
public static YesNoAskMe toYesNoAskMe(String key)
jOptionPaneValueToYesNoAskMe
public static YesNoAskMe jOptionPaneValueToYesNoAskMe(int value)
indexToYesNoAskMe
public static YesNoAskMe indexToYesNoAskMe(int value)
getJOptionPaneValue
public int getJOptionPaneValue()
getIndex
public int getIndex()
toString
public String toString()
- Overrides:
toString
in class Enum<YesNoAskMe>
Submit a bug : syd@jpicedt.org