public class ResourceBundleReference extends ResourceReference implements IResourceBundle
addProvidedResources(org.apache.wicket.markup.head.HeaderItem...)
. Normally, you will
have to register this bundle in ResourceBundles
under
Application.getResourceBundles()
. Dependencies are inherited from the provided resources
if the bundle does not provide them.ResourceReference.Key, ResourceReference.LambdaResourceReference, ResourceReference.UrlAttributes
Constructor and Description |
---|
ResourceBundleReference(ResourceReference bundleRef)
Creates a new bundle reference from the given reference.
|
Modifier and Type | Method and Description |
---|---|
void |
addProvidedResources(HeaderItem... items)
Adds the
HeaderItem s that this bundle provides. |
ResourceReference |
getBundleReference() |
List<HeaderItem> |
getDependencies() |
Iterable<? extends HeaderItem> |
getProvidedResources() |
IResource |
getResource()
Returns the resource.
|
canBeRegistered, equals, getExtension, getKey, getLocale, getName, getScope, getStyle, getUrlAttributes, getVariation, hashCode, of, of, toString
public ResourceBundleReference(ResourceReference bundleRef)
bundleRef
- public ResourceReference getBundleReference()
public void addProvidedResources(HeaderItem... items)
HeaderItem
s that this bundle provides.items
- public IResource getResource()
ResourceReference
getResource
in class ResourceReference
public Iterable<? extends HeaderItem> getProvidedResources()
getProvidedResources
in interface IResourceBundle
public List<HeaderItem> getDependencies()
getDependencies
in class ResourceReference
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.