Class CssUrlReferenceHeaderItem

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

    public class CssUrlReferenceHeaderItem
    extends CssHeaderItem
    HeaderItem for style tags that are rendered using a fixed URL, for example resources from an external site or context relative urls.
    Author:
    papegaaij
    See Also:
    Serialized Form
    • Constructor Detail

      • CssUrlReferenceHeaderItem

        public CssUrlReferenceHeaderItem​(java.lang.String url,
                                         java.lang.String media,
                                         java.lang.String condition,
                                         java.lang.String rel)
        Creates a new CSSUrlReferenceHeaderItem.
        Parameters:
        url - context-relative url of the CSS resource
        media - the media type for this CSS ("print", "screen", etc.)
        condition - the condition to use for Internet Explorer conditional comments. E.g. "IE 7".
        rel - the rel attribute content
      • CssUrlReferenceHeaderItem

        public CssUrlReferenceHeaderItem​(java.lang.String url,
                                         java.lang.String media,
                                         java.lang.String condition)
        Creates a new CSSUrlReferenceHeaderItem.
        Parameters:
        url - context-relative url of the CSS resource
        media - the media type for this CSS ("print", "screen", etc.)
        condition - the condition to use for Internet Explorer conditional comments. E.g. "IE 7".
    • Method Detail

      • getUrl

        public java.lang.String getUrl()
        Returns:
        context-relative url of the CSS resource
      • getMedia

        public java.lang.String getMedia()
        Returns:
        the media type for this CSS ("print", "screen", etc.)
      • getRel

        public java.lang.String getRel()
        Returns:
        the rel attribute content
      • 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