public class CssContentHeaderItem extends CssHeaderItem
HeaderItem
for internal (embedded in the header) css content.Constructor and Description |
---|
CssContentHeaderItem(CharSequence css,
String id,
String condition)
Creates a new
CSSContentHeaderItem . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
CharSequence |
getCss() |
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
getDependencies, getProvidedResources
public CssContentHeaderItem(CharSequence css, String id, String condition)
CSSContentHeaderItem
.css
- css content to be rendered.id
- unique id for the <style> element. This can be null
, however in
that case the ajax header contribution can't detect duplicate CSS fragments.condition
- the condition when the css should be appliedpublic CharSequence getCss()
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 boolean equals(Object o)
equals
in class CssHeaderItem
public int hashCode()
hashCode
in class CssHeaderItem
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.