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 obj) |
CharSequence |
getCss() |
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
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.public 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.Copyright © 2006–2014 Apache Software Foundation. All rights reserved.