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 . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<HeaderItem> |
getDependencies() |
String |
getMedia() |
PageParameters |
getPageParameters() |
Iterable<? extends HeaderItem> |
getProvidedResources() |
ResourceReference |
getReference() |
Iterable<?> |
getRenderTokens() |
int |
hashCode() |
void |
render(Response response)
Renders the
HeaderItem to the response. |
String |
toString() |
forCSS, forCSS, forReference, forReference, forReference, forReference, 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 ResourceReference getReference()
getReference
in interface IReferenceHeaderItem
IReferenceHeaderItem.getReference()
public String getMedia()
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.Copyright © 2006–2016 Apache Software Foundation. All rights reserved.