|
|
Javadoc hosting sponsored by DD Poker and Donohoe Digital LLC. |
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.resource.loader.PackageStringResourceLoader
public class PackageStringResourceLoader
This is one of Wicket's default string resource loaders.
The package based string resource loader attempts to find the resource from a bundle that corresponds to the supplied component objects package or one of its parent packages.
The search order for resources is component object package towards root package.
This implementation is fully aware of both locale and style values when trying to obtain the appropriate resources.
| Constructor Summary | |
|---|---|
PackageStringResourceLoader()
Create and initialize the resource loader. |
|
| Method Summary | |
|---|---|
java.lang.String |
getFilename()
Gets the properties file filename (without extension) |
java.lang.String |
loadStringResource(java.lang.Class clazz,
java.lang.String key,
java.util.Locale locale,
java.lang.String style)
Get the string resource for the given combination of component class, resource key, locale and style. |
java.lang.String |
loadStringResource(Component component,
java.lang.String key)
Get the string resource for the given combination of component and resource key. |
void |
setFilename(java.lang.String filename)
Sets the properties filename (without extension) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PackageStringResourceLoader()
| Method Detail |
|---|
public java.lang.String loadStringResource(java.lang.Class clazz,
java.lang.String key,
java.util.Locale locale,
java.lang.String style)
IStringResourceLoader
loadStringResource in interface IStringResourceLoaderclazz - 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 java.lang.String loadStringResource(Component component,
java.lang.String key)
IStringResourceLoader
loadStringResource in interface IStringResourceLoadercomponent - 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)public java.lang.String getFilename()
public void setFilename(java.lang.String filename)
filename - filename
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||