net.sf.latexdraw.lang
Enum LangTool.Lang
java.lang.Object
java.lang.Enum<LangTool.Lang>
net.sf.latexdraw.lang.LangTool.Lang
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<LangTool.Lang>
- Enclosing class:
- LangTool
public static enum LangTool.Lang
- extends java.lang.Enum<LangTool.Lang>
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
RU
public static final LangTool.Lang RU
CS
public static final LangTool.Lang CS
SR
public static final LangTool.Lang SR
HU
public static final LangTool.Lang HU
VI
public static final LangTool.Lang VI
PT_BR
public static final LangTool.Lang PT_BR
JA
public static final LangTool.Lang JA
TR
public static final LangTool.Lang TR
EN_BR
public static final LangTool.Lang EN_BR
EN_US
public static final LangTool.Lang EN_US
FR
public static final LangTool.Lang FR
ES
public static final LangTool.Lang ES
DE
public static final LangTool.Lang DE
IT
public static final LangTool.Lang IT
PL
public static final LangTool.Lang PL
values
public static LangTool.Lang[] 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 (LangTool.Lang c : LangTool.Lang.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static LangTool.Lang valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
getName
public abstract java.lang.String getName()
- Returns:
- The name of the language.
- Since:
- 3.0
getToken
public abstract java.lang.String getToken()
- Returns:
- The token corresponding to the language.
- Since:
- 3.0
getDefaultLanguage
public static LangTool.Lang getDefaultLanguage()
- Returns:
- The language used by default.
getLanguage
public static LangTool.Lang getLanguage(java.lang.String name)
- Parameters:
name
- The name of the language.
- Returns:
- The Lang object corresponding to the given language name, or the default language is null or not found.
- Since:
- 3.0
getSystemLanguage
public static LangTool.Lang getSystemLanguage()
- Returns:
- The language token (e.g. LANG_FR) corresponding to the system language.
- Since:
- 3.0