leon.misc
Class LyResources
java.lang.Object
leon.misc.LyResourceBundle
leon.misc.LyResources
public class LyResources
- extends LyResourceBundle
This class is used to manage resources of an application. These resources allow the user to
customize an application. (e.g. fading on titlebars, use of compression for generated web files,
PDF generation allowed...). It is based on the mechanism of LyResourceBundle.
Field Summary |
static java.lang.String |
__VERSION
|
Method Summary |
java.lang.String |
getString(java.lang.String key)
Gets the resource string 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 |
__VERSION
public static final java.lang.String __VERSION
- See Also:
- Constant Field Values
LyResources
public LyResources(LyEnvironment environment)
- Constructor with a given environment.Calls
LyResources(environment, null)
.
- Parameters:
environment
- The environment of the resources bundle.
LyResources
public LyResources(LyEnvironment environment,
java.lang.String name)
- Constructor with a given environment and name. Calls
LyResources(environment, name, environment.getLocale())
.
- Parameters:
environment
- The environment of the resources bundle.name
- The name of the resources bundle.
LyResources
public LyResources(LyEnvironment environment,
java.lang.String name,
java.lang.String skin)
- Constructor with a given environment and name. Calls
LyResources(environment, name, environment.getLocale())
.
- Parameters:
environment
- The environment of the resources bundle.name
- The name of the resources bundle.skin
- The name of the skin
getString
public java.lang.String getString(java.lang.String key)
- Gets the resource string corresponding to the given key.
- Parameters:
key
- The key of the string.
- Returns:
- The string corresponding to the key if found, the key otherwise.
Website: W4 S.A., contact us: support@w4global.com