Class JavaScriptResourceReference
- java.lang.Object
-
- org.apache.wicket.request.resource.ResourceReference
-
- org.apache.wicket.request.resource.PackageResourceReference
-
- org.apache.wicket.request.resource.JavaScriptResourceReference
-
- All Implemented Interfaces:
Serializable
,IClusterable
- Direct Known Subclasses:
JQueryPluginResourceReference
,JQueryResourceReference
,WicketAjaxJQueryResourceReference
,WicketWebSocketJQueryResourceReference
public class JavaScriptResourceReference extends PackageResourceReference
Static resource reference for javascript resources. The resources are filtered (stripped comments and whitespace) if there is a registered compressor.- Author:
- Matej
- See Also:
ResourceSettings.getJavaScriptCompressor()
, Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.wicket.request.resource.ResourceReference
ResourceReference.Key, ResourceReference.LambdaResourceReference, ResourceReference.UrlAttributes
-
-
Constructor Summary
Constructors Constructor Description JavaScriptResourceReference(Class<?> scope, String name)
Construct.JavaScriptResourceReference(Class<?> scope, String name, Locale locale, String style, String variation)
Construct.JavaScriptResourceReference(ResourceReference.Key key)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JavaScriptPackageResource
getResource()
Returns the resource.-
Methods inherited from class org.apache.wicket.request.resource.PackageResourceReference
getMinifiedName, getUrlAttributes, readBuffered, removeCompressFlagIfUnnecessary
-
Methods inherited from class org.apache.wicket.request.resource.ResourceReference
canBeRegistered, equals, getDependencies, getExtension, getKey, getLocale, getName, getScope, getStyle, getVariation, hashCode, of, of, toString
-
-
-
-
Constructor Detail
-
JavaScriptResourceReference
public JavaScriptResourceReference(Class<?> scope, String name, Locale locale, String style, String variation)
Construct.- Parameters:
scope
- mandatory parametername
- mandatory parameterlocale
- resource localestyle
- resource stylevariation
- resource variation
-
JavaScriptResourceReference
public JavaScriptResourceReference(Class<?> scope, String name)
Construct.- Parameters:
scope
- mandatory parametername
- mandatory parameter
-
JavaScriptResourceReference
public JavaScriptResourceReference(ResourceReference.Key key)
Construct.- Parameters:
key
- mandatory parameter
-
-
Method Detail
-
getResource
public JavaScriptPackageResource getResource()
Description copied from class:ResourceReference
Returns the resource.- Overrides:
getResource
in classPackageResourceReference
- Returns:
- resource instance
- See Also:
ResourceReference.getResource()
-
-