Package org.openstreetmap.josm.gui
Enum ConditionalOptionPaneUtil.NotShowAgain
- java.lang.Object
-
- java.lang.Enum<ConditionalOptionPaneUtil.NotShowAgain>
-
- org.openstreetmap.josm.gui.ConditionalOptionPaneUtil.NotShowAgain
-
- All Implemented Interfaces:
Serializable
,Comparable<ConditionalOptionPaneUtil.NotShowAgain>
- Enclosing class:
- ConditionalOptionPaneUtil
static enum ConditionalOptionPaneUtil.NotShowAgain extends Enum<ConditionalOptionPaneUtil.NotShowAgain>
An enum designating how long to not show this message again, i.e., for how long to store
-
-
Constructor Summary
Constructors Modifier Constructor Description private
NotShowAgain()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) String
getLabel()
(package private) void
store(String prefKey, Integer value)
Stores the dialog resultvalue
at the corresponding place.static ConditionalOptionPaneUtil.NotShowAgain
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConditionalOptionPaneUtil.NotShowAgain[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO
public static final ConditionalOptionPaneUtil.NotShowAgain NO
-
OPERATION
public static final ConditionalOptionPaneUtil.NotShowAgain OPERATION
-
SESSION
public static final ConditionalOptionPaneUtil.NotShowAgain SESSION
-
PERMANENT
public static final ConditionalOptionPaneUtil.NotShowAgain PERMANENT
-
-
Constructor Detail
-
NotShowAgain
private NotShowAgain()
-
-
Method Detail
-
values
public static ConditionalOptionPaneUtil.NotShowAgain[] 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 (ConditionalOptionPaneUtil.NotShowAgain c : ConditionalOptionPaneUtil.NotShowAgain.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConditionalOptionPaneUtil.NotShowAgain 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 nameNullPointerException
- if the argument is null
-
store
void store(String prefKey, Integer value)
Stores the dialog resultvalue
at the corresponding place.- Parameters:
prefKey
- the preference keyvalue
- the dialog result
-
-