java.lang.Object
org.apache.wicket.markup.head.HeaderItem
org.apache.wicket.markup.head.AbstractCspHeaderItem
org.apache.wicket.markup.head.CssHeaderItem
org.apache.wicket.markup.head.AbstractCssReferenceHeaderItem
org.apache.wicket.markup.head.CssReferenceHeaderItem
- All Implemented Interfaces:
Serializable
,IReferenceHeaderItem
,ISubresourceHeaderItem
,IClusterable
public class CssReferenceHeaderItem
extends AbstractCssReferenceHeaderItem
implements IReferenceHeaderItem
HeaderItem
for style tags that are rendered using a ResourceReference
.- Author:
- papegaaij
- See Also:
-
Constructor Summary
ConstructorDescriptionCssReferenceHeaderItem
(ResourceReference reference, PageParameters pageParameters, String media) Creates a newCSSReferenceHeaderItem
.CssReferenceHeaderItem
(ResourceReference reference, PageParameters pageParameters, String media, String rel) Creates a newCSSReferenceHeaderItem
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Iterable<? extends HeaderItem>
Iterable<?>
int
hashCode()
void
Renders theHeaderItem
to the response.toString()
Methods inherited from class org.apache.wicket.markup.head.AbstractCssReferenceHeaderItem
getMedia, getRel, internalRenderCSSReference, setCrossOrigin, setIntegrity
Methods inherited from class org.apache.wicket.markup.head.CssHeaderItem
forCSS, forReference, forReference, forReference, forReference, forUrl, forUrl, forUrl, getId, setId
Methods inherited from class org.apache.wicket.markup.head.AbstractCspHeaderItem
getNonce, setNonce
-
Constructor Details
-
CssReferenceHeaderItem
public CssReferenceHeaderItem(ResourceReference reference, PageParameters pageParameters, String media) Creates a newCSSReferenceHeaderItem
.- Parameters:
reference
- resource reference pointing to the CSS resourcepageParameters
- the parameters for this CSS resource referencemedia
- the media type for this CSS ("print", "screen", etc.)
-
CssReferenceHeaderItem
public CssReferenceHeaderItem(ResourceReference reference, PageParameters pageParameters, String media, String rel) Creates a newCSSReferenceHeaderItem
.- Parameters:
reference
- resource reference pointing to the CSS resourcepageParameters
- the parameters for this CSS resource referencemedia
- the media type for this CSS ("print", "screen", etc.)rel
- the rel attribute content
-
-
Method Details
-
getReference
- Specified by:
getReference
in interfaceIReferenceHeaderItem
- Returns:
- resource reference pointing to the CSS resource
- See Also:
-
getPageParameters
- Returns:
- the parameters for this CSS resource reference
-
getCrossOrigin
- Specified by:
getCrossOrigin
in interfaceISubresourceHeaderItem
- Overrides:
getCrossOrigin
in classAbstractCssReferenceHeaderItem
-
getIntegrity
- Specified by:
getIntegrity
in interfaceISubresourceHeaderItem
- Overrides:
getIntegrity
in classAbstractCssReferenceHeaderItem
-
getDependencies
- Overrides:
getDependencies
in classHeaderItem
- Returns:
- The dependencies this
HeaderItem
has. Dependencies will always be rendered before the item itself.
-
getProvidedResources
- Overrides:
getProvidedResources
in classHeaderItem
- Returns:
- The resources this
HeaderItem
provides. As these resources are provided by this item, they will no longer be rendered.
-
render
Description copied from class:HeaderItem
Renders theHeaderItem
to the response.- Specified by:
render
in classHeaderItem
-
getRenderTokens
- Specified by:
getRenderTokens
in classHeaderItem
- Returns:
- The tokens this
HeaderItem
can be identified by. If any of the tokens has already been rendered, thisHeaderItem
will not be rendered.
-
toString
-
hashCode
- Overrides:
hashCode
in classAbstractCssReferenceHeaderItem
-
equals
- Overrides:
equals
in classAbstractCssReferenceHeaderItem
-