Package org.apache.wicket.markup.head
Class CssReferenceHeaderItem
- 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 aResourceReference
.- Author:
- papegaaij
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CssReferenceHeaderItem(ResourceReference reference, PageParameters pageParameters, String media)
Creates a newCSSReferenceHeaderItem
.CssReferenceHeaderItem(ResourceReference reference, PageParameters pageParameters, String media, String rel)
Creates a newCSSReferenceHeaderItem
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
CrossOrigin
getCrossOrigin()
List<HeaderItem>
getDependencies()
String
getIntegrity()
PageParameters
getPageParameters()
Iterable<? extends HeaderItem>
getProvidedResources()
ResourceReference
getReference()
Iterable<?>
getRenderTokens()
int
hashCode()
void
render(Response response)
Renders theHeaderItem
to the response.String
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 Detail
-
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 Detail
-
getReference
public ResourceReference getReference()
- Specified by:
getReference
in interfaceIReferenceHeaderItem
- Returns:
- resource reference pointing to the CSS resource
- See Also:
IReferenceHeaderItem.getReference()
-
getPageParameters
public PageParameters getPageParameters()
- Returns:
- the parameters for this CSS resource reference
-
getCrossOrigin
public CrossOrigin getCrossOrigin()
- Specified by:
getCrossOrigin
in interfaceISubresourceHeaderItem
- Overrides:
getCrossOrigin
in classAbstractCssReferenceHeaderItem
-
getIntegrity
public String getIntegrity()
- Specified by:
getIntegrity
in interfaceISubresourceHeaderItem
- Overrides:
getIntegrity
in classAbstractCssReferenceHeaderItem
-
getDependencies
public List<HeaderItem> getDependencies()
- Overrides:
getDependencies
in classHeaderItem
- Returns:
- The dependencies this
HeaderItem
has. Dependencies will always be rendered before the item itself.
-
getProvidedResources
public Iterable<? extends HeaderItem> 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
public void render(Response response)
Description copied from class:HeaderItem
Renders theHeaderItem
to the response.- Specified by:
render
in classHeaderItem
-
getRenderTokens
public Iterable<?> 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.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractCssReferenceHeaderItem
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAbstractCssReferenceHeaderItem
-
-