public enum Language extends java.lang.Enum<Language> implements Renderable, NlsKey, PersistentName
| Enum Constant and Description |
|---|
BE |
CN |
CZ |
DE |
DK |
EG |
EN |
ES |
FI |
FR |
GR |
HU |
IL |
IT |
NL |
NO |
NONE |
PL |
PT |
RU |
SE |
TH |
TR |
US |
SUB_KEY_ACTION, SUB_KEY_COLUMN, SUB_KEY_CONFIRM, SUB_KEY_CONST, SUB_KEY_DBO, SUB_KEY_DEMO, SUB_KEY_ERROR, SUB_KEY_FIELD, SUB_KEY_GUI, SUB_KEY_HELP, SUB_KEY_INFO, SUB_KEY_LABEL, SUB_KEY_MENU, SUB_KEY_MESSAGE, SUB_KEY_MISC, SUB_KEY_STATUS, SUB_KEY_TIP, SUB_KEY_TOOL, SUB_KEY_WINDOW, SUB_KEY_WORKFLOW| Modifier and Type | Method and Description |
|---|---|
static java.util.Locale |
findBestLocaleFor(java.lang.String languageCode,
java.lang.String countryCode)
Finds the best matching Locale constant for the given language and country.
|
static java.util.Locale |
findBestLocaleForLanguageCode(java.lang.String language)
Finds the best matching Locale constant for the given language.
|
static Language |
fromPersistentName(java.lang.String languageCode) |
static java.util.Set<Language> |
getAllAvailableValues()
Returns all available Countries sorted by the translated name.
|
java.lang.String |
getAppKey()
Returns the base prefix of the key
|
static java.util.Set<Language> |
getAvailableValues(java.util.EnumSet<Language> set)
Returns the Countries of the input set sorted by the translated name.
|
static Language |
getDefault()
Returns the
Language constant that matches the default Locale |
java.lang.String |
getLanguageCode() |
static java.util.Comparator |
getLanguageComparator() |
java.lang.String |
getLanguageName() |
java.util.Locale |
getLocale() |
java.lang.String |
getPersistentName()
Returns the String value to be stored in the database or file.
|
java.awt.Color |
getRenderColor() |
javax.swing.Icon |
getRenderIcon() |
java.lang.String |
getRenderText() |
java.lang.String |
getSubKey()
Returns the path of the key
|
java.lang.String |
getText(java.lang.Object... args)
Returns the translated text, which is the value of the translation key
as stored in the translation map.
|
boolean |
isValid() |
java.lang.String |
toString()
Retuns the unique 2-char language code and the translated language name
|
static Language |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Language[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Language NONE
public static final Language US
public static final Language DE
public static final Language EN
public static final Language FR
public static final Language NL
public static final Language RU
public static final Language SE
public static final Language ES
public static final Language BE
public static final Language CN
public static final Language PL
public static final Language FI
public static final Language DK
public static final Language IT
public static final Language NO
public static final Language TH
public static final Language CZ
public static final Language HU
public static final Language PT
public static final Language GR
public static final Language TR
public static final Language IL
public static final Language EG
public static Language[] values()
for (Language c : Language.values()) System.out.println(c);
public static Language valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getPersistentName()
PersistentNamegetPersistentName in interface PersistentNamepublic java.lang.String getLanguageCode()
public java.lang.String getLanguageName()
public java.lang.String getAppKey()
NlsKeypublic java.lang.String getSubKey()
NlsKeypublic java.lang.String getText(java.lang.Object... args)
NlsKeypublic java.awt.Color getRenderColor()
getRenderColor in interface Renderablepublic javax.swing.Icon getRenderIcon()
getRenderIcon in interface Renderablepublic java.lang.String getRenderText()
getRenderText in interface Renderablepublic static java.util.Set<Language> getAllAvailableValues()
public static java.util.Set<Language> getAvailableValues(java.util.EnumSet<Language> set)
public static Language fromPersistentName(java.lang.String languageCode)
public static java.util.Locale findBestLocaleFor(java.lang.String languageCode,
java.lang.String countryCode)
public static java.util.Locale findBestLocaleForLanguageCode(java.lang.String language)
public java.util.Locale getLocale()
public java.lang.String toString()
toString in class java.lang.Enum<Language>public static java.util.Comparator getLanguageComparator()
public static Language getDefault()
Language constant that matches the default Localepublic boolean isValid()
Copyright © 2014 EsprIT-Systems. All Rights Reserved.