Constructor and Description |
---|
LocaleEnumValue(java.util.Locale locale)
Create a locale enum value.
|
Modifier and Type | Method and Description |
---|---|
javax.swing.Icon |
getIcon(java.util.Locale l)
Get a possible icon to display for this value.
|
java.util.Locale |
getLocale()
Get the locale.
|
java.lang.String |
getLongName(java.util.Locale l)
Get a longer description which describes this value.
|
java.util.Locale |
getRealValue()
Get the real value which is used in this enum.
|
java.lang.String |
getShortName(java.util.Locale l)
Get a human readable name for this enum value.
|
boolean |
isEqualTo(java.util.prefs.Preferences preferences,
java.lang.String key)
Is this value equal to the value which is stored in the preferences under the given key?
|
void |
storeTo(java.util.prefs.Preferences preferences,
java.lang.String key)
Store this value to the preferences under the given key.
|
public LocaleEnumValue(java.util.Locale locale)
locale
- locale to set@NotNull public java.lang.String getShortName(@Nullable java.util.Locale l)
getShortName
in interface EnumValue<java.util.Locale>
l
- locale to usepublic java.lang.String getLongName(@Nullable java.util.Locale l)
getLongName
in interface EnumValue<java.util.Locale>
l
- locale to usenull
if no description is availablepublic javax.swing.Icon getIcon(@Nullable java.util.Locale l)
public void storeTo(@NotNull java.util.prefs.Preferences preferences, @NotNull java.lang.String key)
public boolean isEqualTo(@NotNull java.util.prefs.Preferences preferences, @NotNull java.lang.String key)
public java.util.Locale getRealValue()
getRealValue
in interface EnumValue<java.util.Locale>
public java.util.Locale getLocale()
null
for default locale