public final class I18n extends AbstractPropertyChangeObject
| Modifier and Type | Method and Description |
|---|---|
static CharSequence |
getCharSequence(Class<?> clazz,
String key) |
CharSequence |
getCharSequence(String key) |
static I18n |
getInstance(Class clazz) |
static String |
getString(Class<?> clazz,
String key) |
String |
getString(String key)
Get the I18n text from the language file associated with this instance.
|
static void |
setLocale(Locale locale) |
String |
toString() |
addListener, addListener, clone, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeSupport, removeListener, removeListenerpublic static CharSequence getCharSequence(Class<?> clazz, String key)
public static void setLocale(Locale locale)
public CharSequence getCharSequence(String key)
public String getString(String key)
key - The key of the text in the language file.Copyright © 2015 Revolution Systems Inc.. All rights reserved.