|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.levelEditor.i18n.UIStrings
public class UIStrings
Provides an API for accessing the level editor's internationalization data. This data is stored in a set of properties files with the basename "strings".
Constructor Summary | |
---|---|
UIStrings()
|
Method Summary | |
---|---|
static java.util.ResourceBundle |
getBundle()
Returns the underlying ResourceBundle used by this class. |
static java.lang.String |
getString(java.lang.String key)
Returns the localized string parameterized by the given identifier. |
static void |
setLocale(java.util.Locale locale)
Directs this class to use the properties file specified by the given locale. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UIStrings()
Method Detail |
---|
public static java.lang.String getString(java.lang.String key)
key
- The "key" string in a properties file.
java.lang.RuntimeException
- If setLocale
has
never been called.public static java.util.ResourceBundle getBundle()
ResourceBundle
used by this class.
Consumers should not call this method unless they really need direct
access to the underlying bundle.
getString(String)
public static void setLocale(java.util.Locale locale)
setLocale(Locale.ENGLISH)
will
prompt this class to start using the "strings_en" properties file.
locale
- Any locale for which there is a corresponding properties file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |