|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.psychomad.psycholib.resources.Resources
public class Resources
This class allow to use the resources files.
Constructor Summary | |
---|---|
Resources()
|
Method Summary | |
---|---|
static int |
getInt(java.lang.String key)
Returns the int which corresponds to the given key. |
static java.lang.Integer |
getMnemonic(java.lang.String key)
Retreive, from the resources file, the mnemonic associated with the key pass in arg. |
static java.lang.String |
getString(java.lang.String key)
Return the string property which corresponds to the given key. |
static java.lang.String |
getStringNoWarning(java.lang.String key)
Return the string property which corresponds to the given key. |
static void |
updateLanguage(java.util.Locale language)
Allow to change of language. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Resources()
Method Detail |
---|
public static java.lang.String getString(java.lang.String key) throws java.util.MissingResourceException
key
- the string key
java.util.MissingResourceException
public static java.lang.String getStringNoWarning(java.lang.String key)
key
- the string key
public static int getInt(java.lang.String key) throws java.util.MissingResourceException, java.lang.NumberFormatException
key
- the string key
java.util.MissingResourceException
java.lang.NumberFormatException
public static void updateLanguage(java.util.Locale language)
language
- the new language to use in the applicationpublic static java.lang.Integer getMnemonic(java.lang.String key)
key
- the key used for retreiving the mnemonic
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |