|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.Resource
org.apache.wicket.markup.html.WebResource
org.apache.wicket.markup.html.PackageResource
org.apache.wicket.markup.html.CSSPackageResource
public class CSSPackageResource
Package resource for CSS files. It is not different than PackageResource except that it provide utility methods to create proper HTML header contributions for CSS files
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.wicket.markup.html.PackageResource |
---|
PackageResource.PackageResourceBlockedException |
Field Summary |
---|
Fields inherited from class org.apache.wicket.markup.html.PackageResource |
---|
EXTENSION_CSS, EXTENSION_JS |
Fields inherited from interface org.apache.wicket.IResourceListener |
---|
INTERFACE |
Constructor Summary | |
---|---|
protected |
CSSPackageResource(Class<?> scope,
String path,
Locale locale,
String style)
Creates a new javascript package resource. |
Method Summary | |
---|---|
static HeaderContributor |
getHeaderContribution(Class<?> scope,
String path)
Returns a new instance of HeaderContributor with a header contributor that references
a CSS file that lives in a package. |
static HeaderContributor |
getHeaderContribution(Class<?> scope,
String path,
String media)
Returns a new instance of HeaderContributor with a header contributor that references
a CSS file that lives in a package. |
static HeaderContributor |
getHeaderContribution(ResourceReference reference)
Returns a new instance of HeaderContributor with a header contributor that references
a CSS file that lives in a package. |
static HeaderContributor |
getHeaderContribution(ResourceReference reference,
String media)
Returns a new instance of HeaderContributor with a header contributor that references
a CSS file that lives in a package. |
static HeaderContributor |
getHeaderContribution(String location)
Returns a new instance of HeaderContributor with a header contributor referencing a
CSS 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 HeaderContributor |
getHeaderContribution(String location,
String media)
Returns a new instance of HeaderContributor with a header contributor referencing a
CSS 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.
|
Methods inherited from class org.apache.wicket.markup.html.PackageResource |
---|
accept, bind, bind, bind, bind, bind, exists, get, get, get, get, getAbsolutePath, getLocale, getPath, getResourceStream, getResourceStream, getScope, getStyle, lastModifiedTime, newPackageResource, toString |
Methods inherited from class org.apache.wicket.markup.html.WebResource |
---|
configureResponse, getCacheDuration, setHeaders |
Methods inherited from class org.apache.wicket.Resource |
---|
getParameters, invalidate, isCacheable, onResourceRequested, setCacheable, setParameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected CSSPackageResource(Class<?> scope, String path, Locale locale, String style)
scope
- path
- locale
- style
- Method Detail |
---|
public static final HeaderContributor getHeaderContribution(Class<?> scope, String path)
HeaderContributor
with a header contributor that references
a CSS 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 path
public static final HeaderContributor getHeaderContribution(Class<?> scope, String path, String media)
HeaderContributor
with a header contributor that references
a CSS 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 pathmedia
- The media type for this CSS ("print", "screen", etc.)
public static final HeaderContributor getHeaderContribution(ResourceReference reference)
HeaderContributor
with a header contributor that references
a CSS file that lives in a package.
reference
-
public static final HeaderContributor getHeaderContribution(ResourceReference reference, String media)
HeaderContributor
with a header contributor that references
a CSS file that lives in a package.
reference
- media
- The media type for this CSS ("print", "screen", etc.)
public static final HeaderContributor getHeaderContribution(String location)
HeaderContributor
with a header contributor referencing a
CSS file using one of the following schemes:
location
- The location of the css file.
public static final HeaderContributor getHeaderContribution(String location, String media)
HeaderContributor
with a header contributor referencing a
CSS file using one of the following schemes:
location
- The location of the css.media
- The media type for this CSS ("print", "screen", etc.)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |