|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.resource.loader.ValidatorStringResourceLoader
public class ValidatorStringResourceLoader
This is one of Wicket's default string resource loaders.
The validator string resource loader checks resource bundles attached to validators (eg MinimumValidator.properties). The validator list is pulled from the form component in error.
This implementation is fully aware of both locale and style values when trying to obtain the appropriate resources.
Constructor Summary | |
---|---|
ValidatorStringResourceLoader()
Create and initialize the resource loader. |
Method Summary | |
---|---|
String |
loadStringResource(Class<?> clazz,
String key,
Locale locale,
String style)
Get the string resource for the given combination of component class, resource key, locale and style. |
String |
loadStringResource(Component component,
String key)
Get the string resource for the given combination of component and resource key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidatorStringResourceLoader()
Method Detail |
---|
public String loadStringResource(Class<?> clazz, String key, Locale locale, String style)
IStringResourceLoader
loadStringResource
in interface IStringResourceLoader
clazz
- The class to get the string resource forkey
- The key should be a String containing a lookup key into a resource bundlelocale
- The locale should contain the locale of the current operation so that the
appropriate set of resources can be selectedstyle
- The style identifying the resource set to select the strings from (see
Session
)
IStringResourceLoader.loadStringResource(java.lang.Class,
java.lang.String, java.util.Locale, java.lang.String)
public String loadStringResource(Component component, String key)
IStringResourceLoader
loadStringResource
in interface IStringResourceLoader
component
- The component to get the string resource forkey
- The key should be a String containing a lookup key into a resource bundle
IStringResourceLoader.loadStringResource(org.apache.wicket.Component,
java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |