org.apache.wicket.markup.head
Class CssContentHeaderItem
java.lang.Object
org.apache.wicket.markup.head.HeaderItem
org.apache.wicket.markup.head.CssHeaderItem
org.apache.wicket.markup.head.CssContentHeaderItem
public class CssContentHeaderItem
- extends CssHeaderItem
HeaderItem
for internal (embedded in the header) css content.
- Author:
- papegaaij
Methods inherited from class org.apache.wicket.markup.head.CssHeaderItem |
forCSS, forCSS, forReference, forReference, forReference, forReference, forUrl, forUrl, forUrl, getCondition, internalRenderCSSReference |
CssContentHeaderItem
public CssContentHeaderItem(CharSequence css,
String id,
String condition)
- Creates a new
CSSContentHeaderItem
.
- Parameters:
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.
getCss
public CharSequence getCss()
- Returns:
- the css content to be rendered.
getId
public String getId()
- Returns:
- unique id for the <style> element.
render
public void render(Response response)
- Description copied from class:
HeaderItem
- Renders the
HeaderItem
to the response.
- Specified by:
render
in class HeaderItem
getRenderTokens
public Iterable<?> getRenderTokens()
- Specified by:
getRenderTokens
in class HeaderItem
- Returns:
- The tokens this
HeaderItem
can be identified by. If any of the tokens has
already been rendered, this HeaderItem
will not be rendered.
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.