org.odlabs.wiquery.core.resources
Class WiQueryStyleSheetResourceReference
java.lang.Object
org.apache.wicket.request.resource.ResourceReference
org.apache.wicket.resource.dependencies.AbstractResourceDependentResourceReference
org.odlabs.wiquery.core.resources.WiQueryStyleSheetResourceReference
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- WiQueryCoreThemeResourceReference
public class WiQueryStyleSheetResourceReference
- extends org.apache.wicket.resource.dependencies.AbstractResourceDependentResourceReference
ResourceReference
which checks the WiQuerySettings
if the resources
needs to fetch the normal (non-minimized) version or the minimized version.
Note that this ResourceReference only loads files and does not minify on the fly.
Always provide the normal (non-minimized) version, wiquery will reference to the
minimized version when WiQuerySettings.isMinifiedStyleSheetResources()
is true.
The filename format for the 2 versions is:
- Normal version: foo.js / foo.css
- Minimized version: foo.min.js / foo.min.css
- Author:
- Hielke Hoeve
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class org.apache.wicket.resource.dependencies.AbstractResourceDependentResourceReference |
org.apache.wicket.resource.dependencies.AbstractResourceDependentResourceReference.ResourceType |
Nested classes/interfaces inherited from class org.apache.wicket.request.resource.ResourceReference |
org.apache.wicket.request.resource.ResourceReference.Key, org.apache.wicket.request.resource.ResourceReference.UrlAttributes |
Methods inherited from class org.apache.wicket.resource.dependencies.AbstractResourceDependentResourceReference |
getMedia, getResourceType, getUniqueId, setMedia, setUniqueId |
Methods inherited from class org.apache.wicket.request.resource.ResourceReference |
canBeRegistered, equals, getExtension, getKey, getLocale, getScope, getStyle, getUrlAttributes, getVariation, hashCode, toString |
WiQueryStyleSheetResourceReference
public WiQueryStyleSheetResourceReference(Class<?> scope,
String name,
Locale locale,
String style,
String variation)
- Construct.
- Parameters:
scope
- mandatory parametername
- mandatory parameterlocale
- resource localestyle
- resource stylevariation
- resource variation
WiQueryStyleSheetResourceReference
public WiQueryStyleSheetResourceReference(Class<?> scope,
String name)
- Construct.
- Parameters:
scope
- mandatory parametername
- mandatory parameter
getName
public String getName()
- Overrides:
getName
in class org.apache.wicket.request.resource.ResourceReference
isMinifiedStyleSheetResources
public static boolean isMinifiedStyleSheetResources()
getDependentResourceReferences
public org.apache.wicket.resource.dependencies.AbstractResourceDependentResourceReference[] getDependentResourceReferences()
- Specified by:
getDependentResourceReferences
in class org.apache.wicket.resource.dependencies.AbstractResourceDependentResourceReference
- Returns:
- default an empty list as all subclasses must implement this to fit their
own needs.
getResource
public org.apache.wicket.request.resource.IResource getResource()
- Specified by:
getResource
in class org.apache.wicket.request.resource.ResourceReference
isWiQuery
public boolean isWiQuery()
Copyright © 2012. All Rights Reserved.