org.displaytag.localization
public interface: I18nResourceProvider [javadoc |
source]
All Known Implementing Classes:
I18nSpringAdapter, I18nWebworkAdapter, I18nJstlAdapter, I18nStrutsAdapter
Interface for resource providers. Given a
resourceKey and a
defaultValue, a resource
provider returns the String which should be displayed. For column headers
resourceKey will be the
value of the
titleKey attribute,
defaultValue will be the value of the
property attribute. Different resource providers can be plugged using the displaytag.properties file.
- author:
Fabrizio - Giustina
- version:
$ - Revision: 1081 $ ($Author: fgiust $)
| Method from org.displaytag.localization.I18nResourceProvider Summary: |
|---|
|
getResource |
| Method from org.displaytag.localization.I18nResourceProvider Detail: |
public String getResource(String resourceKey,
String defaultValue,
Tag tag,
PageContext context)
Returns a localized String. A resource provider is free to use both resourceKey or
defaultValue for the lookup. For example in column titles defaultValue is the value
of the property attribute and can be used as a default if titleKey is not
specified. |