|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<LanguageEnum>
cz.zcu.fav.kiv.editor.controller.resource.LanguageEnum
public enum LanguageEnum
The EncodingEnum class is the enumerated list of languages used in the
application.
| Enum Constant Summary | |
|---|---|
CS
|
|
EN
|
|
| Method Summary | |
|---|---|
static java.util.Locale |
getDefaultLocale()
Gets the current value of the default locale for this instance of the Java Virtual Machine. |
static LanguageEnum |
getLanguage(java.util.Locale loc)
Returns LanguageEnum language for corresponding locale. |
java.util.Locale |
getLocale()
|
static java.util.Locale |
parseLocale(java.lang.String language)
Parses input string containing language and returns corresponding locale
language. |
java.lang.String |
toString()
Returns title of the language loaded from resources ResourceController. |
static LanguageEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static LanguageEnum[] |
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 |
|---|
public static final LanguageEnum EN
public static final LanguageEnum CS
| Method Detail |
|---|
public static LanguageEnum[] values()
for (LanguageEnum c : LanguageEnum.values()) System.out.println(c);
public static LanguageEnum 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 name
java.lang.NullPointerException - if the argument is nullpublic java.lang.String toString()
ResourceController.
toString in class java.lang.Enum<LanguageEnum>ResourceController.public static LanguageEnum getLanguage(java.util.Locale loc)
LanguageEnum language for corresponding locale.
loc - the locale of the language.
public static java.util.Locale parseLocale(java.lang.String language)
locale
language.
language - the input text constant containing language.
public java.util.Locale getLocale()
public static java.util.Locale getDefaultLocale()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||