public class StyleSheetPackageResource
extends org.apache.wicket.markup.html.CompressedPackageResource
| Modifier and Type | Class and Description |
|---|---|
protected class |
StyleSheetPackageResource.FilteringResourceStream
Resource Stream that caches the stripped content.
|
| Modifier | Constructor and Description |
|---|---|
protected |
StyleSheetPackageResource(Class<?> scope,
String path,
Locale locale,
String style)
Creates a new javascript package resource.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.wicket.behavior.HeaderContributor |
getHeaderContribution(Class<?> scope,
String path)
Returns a new instance of
HeaderContributor with a header
contributor that references a java script file that lives in a package. |
static org.apache.wicket.behavior.HeaderContributor |
getHeaderContribution(org.apache.wicket.ResourceReference reference)
Returns a new instance of
HeaderContributor with a header
contributor that references a java script file that lives in a package. |
static org.apache.wicket.behavior.HeaderContributor |
getHeaderContribution(String location)
Returns a new instance of
HeaderContributor with a header
contributor referencing a java script file using one of the following
schemes:
Starts with http:// or https:// for an external reference.
Starts with "/" for an absolute reference that Wicket will not
rewrite.
Starts with anything else, which Wicket will automatically prepend to
make relative to the context root of your web-app.
|
static org.apache.wicket.markup.html.PackageResource |
newPackageResource(Class<?> scope,
String path,
Locale locale,
String style)
Create a new PackageResource
|
protected org.apache.wicket.util.resource.IResourceStream |
newResourceStream() |
getPackageResourceStream, getResourceStream, setHeadersaccept, bind, bind, bind, bind, bind, exists, get, get, get, get, getAbsolutePath, getLocale, getPath, getResourceStream, getScope, getStyle, lastModifiedTime, toStringconfigureResponse, getCacheDurationpublic static final org.apache.wicket.behavior.HeaderContributor getHeaderContribution(Class<?> scope, String path)
HeaderContributor with a header
contributor that references a java script file that lives in a package.scope - The scope of the package resource (typically the class of the
caller, or a class that lives in the package where the
resource lives).path - The pathpublic static final org.apache.wicket.behavior.HeaderContributor getHeaderContribution(org.apache.wicket.ResourceReference reference)
HeaderContributor with a header
contributor that references a java script file that lives in a package.reference - public static final org.apache.wicket.behavior.HeaderContributor getHeaderContribution(String location)
HeaderContributor with a header
contributor referencing a java script file using one of the following
schemes:
location - The location of the java script file.public static org.apache.wicket.markup.html.PackageResource newPackageResource(Class<?> scope, String path, Locale locale, String style)
scope - This argument will be used to get the class loader for loading
the package resource, and to determine what package it is in.
Typically this is the class in which you call this methodpath - The path to the resourcelocale - The locale of the resourcestyle - The style of the resource (see
Session)protected org.apache.wicket.util.resource.IResourceStream newResourceStream()
newResourceStream in class org.apache.wicket.markup.html.CompressedPackageResourceCompressedPackageResource.newResourceStream()Copyright © 2009-2012. All Rights Reserved.