com.alee.managers.language
Class LM

java.lang.Object
  extended by com.alee.managers.language.LM
All Implemented Interfaces:
LanguageConstants

public class LM
extends java.lang.Object
implements LanguageConstants

This is short-named reference class for some basic LanguageManager methods. It is added to reduce the code size of language values requests in cases of direct translations use.

Author:
Mikle Garin

Field Summary
 
Fields inherited from interface com.alee.managers.language.LanguageConstants
ARABIC, ENGLISH, FRENCH, GERMAN, POLISH, PORTUGUESE, RUSSIAN, SPANISH
 
Constructor Summary
LM()
           
 
Method Summary
static boolean contains(java.lang.String key)
          Returns whether specified language key exists or not.
static java.lang.String get(java.lang.String key)
          Returns translation for specified language key.
static java.lang.String get(java.lang.String key, java.lang.Object... data)
          Returns translation for specified language key and formatting data.
static java.lang.Character getMnemonic(java.lang.String key)
          Returns mnemonic for specified language key.
static Value getValue(java.lang.String key)
          Returns language value for specified language key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LM

public LM()
Method Detail

get

public static java.lang.String get(java.lang.String key)
Returns translation for specified language key.

Parameters:
key - language key
Returns:
key translation

get

public static java.lang.String get(java.lang.String key,
                                   java.lang.Object... data)
Returns translation for specified language key and formatting data.

Parameters:
key - language key
data - formatting data
Returns:
key translation

contains

public static boolean contains(java.lang.String key)
Returns whether specified language key exists or not.

Parameters:
key - language key to check
Returns:
whether specified language key exists or not

getMnemonic

public static java.lang.Character getMnemonic(java.lang.String key)
Returns mnemonic for specified language key.

Parameters:
key - language key
Returns:
mnemonic

getValue

public static Value getValue(java.lang.String key)
Returns language value for specified language key.

Parameters:
key - language key
Returns:
language value