org.odlabs.wiquery.core.resources
Class WiQueryStyleSheetResourceReference

java.lang.Object
  extended by org.apache.wicket.request.resource.ResourceReference
      extended by org.apache.wicket.resource.dependencies.AbstractResourceDependentResourceReference
          extended by 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:

Author:
Hielke Hoeve
See Also:
Serialized Form

Nested Class Summary
 
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
 
Constructor Summary
WiQueryStyleSheetResourceReference(Class<?> scope, String name)
          Construct.
WiQueryStyleSheetResourceReference(Class<?> scope, String name, Locale locale, String style, String variation)
          Construct.
 
Method Summary
 org.apache.wicket.resource.dependencies.AbstractResourceDependentResourceReference[] getDependentResourceReferences()
           
 String getName()
           
 org.apache.wicket.request.resource.IResource getResource()
           
static boolean isMinifiedStyleSheetResources()
           
 boolean isWiQuery()
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WiQueryStyleSheetResourceReference

public WiQueryStyleSheetResourceReference(Class<?> scope,
                                          String name,
                                          Locale locale,
                                          String style,
                                          String variation)
Construct.

Parameters:
scope - mandatory parameter
name - mandatory parameter
locale - resource locale
style - resource style
variation - resource variation

WiQueryStyleSheetResourceReference

public WiQueryStyleSheetResourceReference(Class<?> scope,
                                          String name)
Construct.

Parameters:
scope - mandatory parameter
name - mandatory parameter
Method Detail

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.