public class CssReferenceHeaderItem extends CssHeaderItem implements IReferenceHeaderItem
HeaderItem
for style tags that are rendered using a ResourceReference
.Constructor and Description |
---|
CssReferenceHeaderItem(ResourceReference reference,
PageParameters pageParameters,
String media,
String condition)
Creates a new
CSSReferenceHeaderItem . |
CssReferenceHeaderItem(ResourceReference reference,
PageParameters pageParameters,
String media,
String condition,
String rel)
Creates a new
CSSReferenceHeaderItem . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<HeaderItem> |
getDependencies() |
String |
getMedia() |
PageParameters |
getPageParameters() |
Iterable<? extends HeaderItem> |
getProvidedResources() |
ResourceReference |
getReference() |
String |
getRel() |
Iterable<?> |
getRenderTokens() |
int |
hashCode() |
void |
render(Response response)
Renders the
HeaderItem to the response. |
String |
toString() |
forCSS, forCSS, forReference, forReference, forReference, forReference, forReference, forUrl, forUrl, forUrl, forUrl, getCondition, getId, internalRenderCSSReference, setId
public CssReferenceHeaderItem(ResourceReference reference, PageParameters pageParameters, String media, String condition)
CSSReferenceHeaderItem
.reference
- resource reference pointing to the CSS resourcepageParameters
- the parameters for this CSS resource referencemedia
- the media type for this CSS ("print", "screen", etc.)condition
- the condition to use for Internet Explorer conditional comments. E.g. "IE 7".public CssReferenceHeaderItem(ResourceReference reference, PageParameters pageParameters, String media, String condition, String rel)
CSSReferenceHeaderItem
.reference
- resource reference pointing to the CSS resourcepageParameters
- the parameters for this CSS resource referencemedia
- the media type for this CSS ("print", "screen", etc.)condition
- the condition to use for Internet Explorer conditional comments. E.g. "IE 7".rel
- the rel attribute contentpublic ResourceReference getReference()
getReference
in interface IReferenceHeaderItem
IReferenceHeaderItem.getReference()
public String getMedia()
public String getRel()
public PageParameters getPageParameters()
public List<HeaderItem> getDependencies()
getDependencies
in class HeaderItem
HeaderItem
has. Dependencies will always be rendered
before the item itself.public Iterable<? extends HeaderItem> getProvidedResources()
getProvidedResources
in class HeaderItem
HeaderItem
provides. As these resources are provided by
this item, they will no longer be rendered.public void render(Response response)
HeaderItem
HeaderItem
to the response.render
in class HeaderItem
public Iterable<?> getRenderTokens()
getRenderTokens
in class HeaderItem
HeaderItem
can be identified by. If any of the tokens has
already been rendered, this HeaderItem
will not be rendered.public int hashCode()
hashCode
in class CssHeaderItem
public boolean equals(Object o)
equals
in class CssHeaderItem
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.