org.apache.wicket.markup.head
Class CssContentHeaderItem

java.lang.Object
  extended by org.apache.wicket.markup.head.HeaderItem
      extended by org.apache.wicket.markup.head.CssHeaderItem
          extended by org.apache.wicket.markup.head.CssContentHeaderItem
All Implemented Interfaces:
Serializable, IClusterable

public class CssContentHeaderItem
extends CssHeaderItem

HeaderItem for internal (embedded in the header) css content.

Author:
papegaaij
See Also:
Serialized Form

Constructor Summary
CssContentHeaderItem(CharSequence css, String id, String condition)
          Creates a new CSSContentHeaderItem.
 
Method Summary
 boolean equals(Object obj)
           
 CharSequence getCss()
           
 String getId()
           
 Iterable<?> getRenderTokens()
           
 int hashCode()
           
 void render(Response response)
          Renders the HeaderItem to the response.
 String toString()
           
 
Methods inherited from class org.apache.wicket.markup.head.CssHeaderItem
forCSS, forCSS, forReference, forReference, forReference, forReference, forUrl, forUrl, forUrl, getCondition, internalRenderCSSReference
 
Methods inherited from class org.apache.wicket.markup.head.HeaderItem
getDependencies, getProvidedResources
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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–2016 Apache Software Foundation. All rights reserved.