|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.misc.LyResourceBundle
leon.misc.LyStrings
public class LyStrings
This class is used to manage the strings resources of an application. It is based on the mechanism of LyResourceBundle.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Fields inherited from class leon.misc.LyResourceBundle |
---|
PACKAGE_DIR, PROPERTIES_DIR, UPPER_CASE_KEYS_ONLY |
Constructor Summary | |
---|---|
LyStrings(LyEnvironment environment)
Constructor with a given environment. |
|
LyStrings(LyEnvironment environment,
java.lang.String name)
Constructor with a given environment and name. |
|
LyStrings(LyEnvironment environment,
java.lang.String name,
java.lang.String skin)
Constructor with a given environment and name. |
Method Summary | |
---|---|
int |
getInt(java.lang.String key)
Gets the integer corresponding to the given key. |
long |
getLong(java.lang.String key)
Returns the long corresponding to the key passed. |
java.lang.Character |
getMnemonic(java.lang.String key)
Gets the mnemonic of the string corresponding to the given key. |
java.lang.String |
getString(java.lang.String key)
Gets the string corresponding to the given key. |
java.lang.String |
getString(java.lang.String key,
java.lang.Object[] arguments)
Gets a message formated with the specified arguments corresponding to the given key. |
Methods inherited from class leon.misc.LyResourceBundle |
---|
checkKey, clearCache, free, get, getKeyList, getKeys, getSonEnvironments, hasKey, put, remove, removeBundles, saveTo |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyStrings(LyEnvironment environment)
LyStrings(environment, null)
constructor.
environment
- The environment of the strings bundle.public LyStrings(LyEnvironment environment, java.lang.String name)
LyStrings(environment, name, environment.getLocale())
constructor.
environment
- The environment of the strings bundle.name
- The name of the strings bundle.public LyStrings(LyEnvironment environment, java.lang.String name, java.lang.String skin)
LyStrings(environment, name, environment.getLocale())
constructor.
environment
- The environment of the strings bundle.name
- The name of the strings bundle.skin
- The name of the skinMethod Detail |
---|
public java.lang.String getString(java.lang.String key)
key
- The key of the string.
public java.lang.Character getMnemonic(java.lang.String key)
key
- The key of the string.
public int getInt(java.lang.String key)
key
- The key of the integer.
public long getLong(java.lang.String key)
key
- The key of the long.
public java.lang.String getString(java.lang.String key, java.lang.Object[] arguments)
MessageFormat
for syntax.
key
- the string keyarguments
- the list of message argments
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |