|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.request.resource.ResourceReference
org.apache.wicket.request.resource.SharedResourceReference
public class SharedResourceReference
A ResourceReference which should be used to lookup a IResource from the globally
registered ones (also known as application shared resources). If there is no shared resource with
such key then it checks whether there is a PackageResource with this
key and registers it automatically if it exists.
Note: Cannot be registered in ResourceReferenceRegistry because
SharedResourceReference is just a shortcut to the resource of another
ResourceReference
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.wicket.request.resource.ResourceReference |
|---|
ResourceReference.Key, ResourceReference.UrlAttributes |
| Constructor Summary | |
|---|---|
SharedResourceReference(Class<?> scope,
String name)
Construct. |
|
SharedResourceReference(Class<?> scope,
String name,
Locale locale,
String style,
String variation)
Construct. |
|
SharedResourceReference(String name)
Construct. |
|
| Method Summary | |
|---|---|
boolean |
canBeRegistered()
Can be used to disable registering certain resource references in ResourceReferenceRegistry. |
IResource |
getResource()
Returns the resource. |
| Methods inherited from class org.apache.wicket.request.resource.ResourceReference |
|---|
equals, getExtension, getKey, getLocale, getName, getScope, getStyle, getUrlAttributes, getVariation, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SharedResourceReference(Class<?> scope,
String name,
Locale locale,
String style,
String variation)
scope - Scope of resourcename - Logical name of resourcelocale - The locale of the resourcestyle - The resource style (see Session)variation - The component specific variation of the style
public SharedResourceReference(Class<?> scope,
String name)
scope - Scope of resourcename - Logical name of resourcepublic SharedResourceReference(String name)
name - resource name| Method Detail |
|---|
public IResource getResource()
ResourceReference
getResource in class ResourceReferencepublic boolean canBeRegistered()
ResourceReferenceResourceReferenceRegistry.
canBeRegistered in class ResourceReferencetrue if this reference can be registered, false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||