Class CssContentHeaderItem

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.wicket.util.io.IClusterable

    public class CssContentHeaderItem
    extends CssHeaderItem
    HeaderItem for internal (embedded in the header) css content.
    Author:
    papegaaij
    See Also:
    Serialized Form
    • Constructor Detail

      • CssContentHeaderItem

        public CssContentHeaderItem​(java.lang.CharSequence css,
                                    java.lang.String id,
                                    java.lang.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.
        condition - the condition when the css should be applied
    • Method Detail

      • getCss

        public java.lang.CharSequence getCss()
        Returns:
        the css content to be rendered.
      • render

        public void render​(org.apache.wicket.request.Response response)
        Description copied from class: HeaderItem
        Renders the HeaderItem to the response.
        Specified by:
        render in class HeaderItem
      • getRenderTokens

        public java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class CssHeaderItem