org.apache.wicket.markup.html.resources
Class JavascriptResourceReference

java.lang.Object
  extended by org.apache.wicket.ResourceReference
      extended by org.apache.wicket.markup.html.resources.JavascriptResourceReference
All Implemented Interfaces:
java.io.Serializable, IClusterable
Direct Known Subclasses:
WicketAjaxReference, WicketEventReference

public class JavascriptResourceReference
extends ResourceReference

Static resource reference for javascript resources. The resources are filtered (stripped comments and whitespace) and gzipped.

Author:
Matej Knopp
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.wicket.ResourceReference
locale
 
Constructor Summary
JavascriptResourceReference(java.lang.Class scope, java.lang.String name)
          Creates a new javascript resource reference.
JavascriptResourceReference(java.lang.Class scope, java.lang.String name, java.util.Locale locale, java.lang.String style)
          Creates a new javascript resource reference.
JavascriptResourceReference(java.lang.String name)
          Creates a new javascript resource reference.
 
Method Summary
protected  Resource newResource()
          Factory method for lazy initialization of shared resources.
 
Methods inherited from class org.apache.wicket.ResourceReference
bind, equals, getLocale, getName, getResource, getScope, getSharedResourceKey, getStyle, hashCode, invalidate, lastModifiedTime, setLocale, setStyle, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavascriptResourceReference

public JavascriptResourceReference(java.lang.Class scope,
                                   java.lang.String name,
                                   java.util.Locale locale,
                                   java.lang.String style)
Creates a new javascript resource reference.

Parameters:
scope -
name -
locale -
style -

JavascriptResourceReference

public JavascriptResourceReference(java.lang.Class scope,
                                   java.lang.String name)
Creates a new javascript resource reference.

Parameters:
scope -
name -

JavascriptResourceReference

public JavascriptResourceReference(java.lang.String name)
Creates a new javascript resource reference.

Parameters:
name -
Method Detail

newResource

protected Resource newResource()
Description copied from class: ResourceReference
Factory method for lazy initialization of shared resources.

Overrides:
newResource in class ResourceReference
Returns:
The resource


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.