Package org.wicketstuff.jwicket
Class JQueryResourceReference
- java.lang.Object
-
- org.apache.wicket.request.resource.ResourceReference
-
- org.apache.wicket.request.resource.PackageResourceReference
-
- org.apache.wicket.request.resource.JavaScriptResourceReference
-
- org.wicketstuff.jwicket.JQueryResourceReference
-
- All Implemented Interfaces:
Serializable,IClusterable,IModifiable
- Direct Known Subclasses:
JQueryCssResourceReference
public class JQueryResourceReference extends JavaScriptResourceReference implements IModifiable
Base class for all Header contributing resource references. The resource references are divided into two main categories:- Resources that must not be modified by the user
of this jQuery-Wicket library. This are e.g.
libraries that are patches/modified to work around
some speical problems. If this libraries would have
been replaced by the user, the functionality of of
this lirary will definitely be broken.
Resources that maybe replaced by the user.
JQueryResourceReferenceType.OVERRIDABLE. If you try to replace the core jQuery.js library itself, this may have no effect as the library may be marked asJQueryResourceReferenceType.NOT_OVERRIDABLE. This is because jQuery.js contains some special patches at the moment. This may change in future versions of this library if the jQuery developers fix some problems in the official release. If you try to replace any library that is marked asJQueryResourceReferenceType.NOT_OVERRIDABLEwith your own version this will lead to aWicketRuntimeException.- See Also:
- 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 JQueryResourceReference(Class<?> scope, String name)JQueryResourceReference(Class<?> scope, String name, String id)JQueryResourceReference(Class<?> scope, String name, String id, JQueryResourceReferenceType type)JQueryResourceReference(Class<?> scope, String name, JQueryResourceReferenceType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()JQueryResourceReferenceTypegetType()booleanhasId()booleanisOverridable()InstantlastModifiedTime()-
Methods inherited from class org.apache.wicket.request.resource.JavaScriptResourceReference
getResource
-
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
-
JQueryResourceReference
public JQueryResourceReference(Class<?> scope, String name, JQueryResourceReferenceType type)
-
JQueryResourceReference
public JQueryResourceReference(Class<?> scope, String name, String id, JQueryResourceReferenceType type)
-
-
Method Detail
-
hasId
public boolean hasId()
-
getId
public String getId()
-
getType
public JQueryResourceReferenceType getType()
-
isOverridable
public boolean isOverridable()
-
lastModifiedTime
public Instant lastModifiedTime()
- Specified by:
lastModifiedTimein interfaceIModifiable
-
-