|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.request.resource.ResourceReference org.apache.wicket.resource.bundles.ConcatResourceBundleReference<T>
T
- The type of the header items to bundlepublic class ConcatResourceBundleReference<T extends HeaderItem & IReferenceHeaderItem>
A resource bundle that automatically concatenates the given resources. These resources should all
be of the same type (javascript or css) and all have IStaticCacheableResource
(or
subclasses). After creating the bundle, you normally have to register it in the
ResourceBundles
under Application.getResourceBundles()
. ResourceBundles
has two utility methods to create instances of this class:
addJavaScriptBundle
and
addCssBundle
.
Dependencies are inherited from the provided resources, if the bundle does not provide all
dependencies itself.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.wicket.request.resource.ResourceReference |
---|
ResourceReference.Key, ResourceReference.UrlAttributes |
Constructor Summary | |
---|---|
ConcatResourceBundleReference(Class<?> scope,
String name,
List<T> resources)
Creates a new ConcatResourceBundleReference for the given resources. |
|
ConcatResourceBundleReference(Class<?> scope,
String name,
Locale locale,
String style,
String variation,
List<T> resources)
Creates a new ConcatResourceBundleReference for the given resources. |
|
ConcatResourceBundleReference(Class<?> scope,
String name,
T... resources)
Creates a new ConcatResourceBundleReference for the given resources. |
|
ConcatResourceBundleReference(String name,
T... resources)
Creates a new ConcatResourceBundleReference for the given resources. |
Method Summary | |
---|---|
Iterable<? extends HeaderItem> |
getDependencies()
|
List<T> |
getProvidedResources()
|
IResource |
getResource()
Returns the resource. |
Methods inherited from class org.apache.wicket.request.resource.ResourceReference |
---|
canBeRegistered, 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 ConcatResourceBundleReference(Class<?> scope, String name, List<T> resources)
ConcatResourceBundleReference
for the given resources.
scope
- name
- resources
- public ConcatResourceBundleReference(Class<?> scope, String name, T... resources)
ConcatResourceBundleReference
for the given resources.
scope
- name
- resources
- public ConcatResourceBundleReference(String name, T... resources)
ConcatResourceBundleReference
for the given resources.
name
- resources
- public ConcatResourceBundleReference(Class<?> scope, String name, Locale locale, String style, String variation, List<T> resources)
ConcatResourceBundleReference
for the given resources.
scope
- mandatory parametername
- mandatory parameterlocale
- resource localestyle
- resource stylevariation
- resource variationresources
- the resources that are concatenatedMethod Detail |
---|
public IResource getResource()
ResourceReference
getResource
in class ResourceReference
public List<T> getProvidedResources()
getProvidedResources
in interface IResourceBundle
public Iterable<? extends HeaderItem> getDependencies()
getDependencies
in class ResourceReference
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |