|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.resource.loader.BundleStringResourceLoader
public class BundleStringResourceLoader
Implementation of a string resource loader that sits on top of the ordinary Java resource bundle mechanism. When created this loader must be given the name of the resource bundle that it is to sit on top of. Note that this implementation does not make use of any style or component specific knowledge - it utilizes just the bundle name, the resource key and the locale.
Constructor Summary | |
---|---|
BundleStringResourceLoader(String bundleName)
Create the loader with the name of the given Java resource bundle. |
Method Summary | |
---|---|
String |
loadStringResource(Class<?> clazz,
String key,
Locale locale,
String style)
Get the requested string resource from the underlying resource bundle. |
String |
loadStringResource(Component component,
String key)
Get the requested string resource from the underlying resource bundle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BundleStringResourceLoader(String bundleName)
bundleName
- The name of the resource bundleMethod Detail |
---|
public final String loadStringResource(Class<?> clazz, String key, Locale locale, String style)
loadStringResource
in interface IStringResourceLoader
clazz
- Not used for this implementationkey
- The key to obtain the string forlocale
- The locale identifying the resource set to select the strings fromstyle
- Not used for this implementation (see Session
)
public final String loadStringResource(Component component, String key)
loadStringResource
in interface IStringResourceLoader
component
- Used to get the localekey
- The key to obtain the string for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |