http://www.jpicedt.org

jpicedt.ui.dialog
Enum YesNoAskMe

java.lang.Object
  extended by java.lang.Enum<YesNoAskMe>
      extended by 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

Nested Class Summary
 class YesNoAskMe.Keys
           
 
Enum Constant Summary
ASK_ME
           
NO
           
YES
           
 
Method Summary
static YesNoAskMe getDefault()
           
 int getIndex()
           
 int getJOptionPaneValue()
           
static YesNoAskMe indexToYesNoAskMe(int value)
           
static YesNoAskMe jOptionPaneValueToYesNoAskMe(int value)
           
 String toString()
           
static YesNoAskMe toYesNoAskMe(String key)
           
static YesNoAskMe valueOf(String name)
          Returns the enum constant of this type with the specified name.
static YesNoAskMe[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

YES

public static final YesNoAskMe YES

NO

public static final YesNoAskMe NO

ASK_ME

public static final YesNoAskMe ASK_ME
Method Detail

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>

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org