Class HtmlSpecialTag

    • Field Detail

      • xmlTag

        protected final XmlTag xmlTag
        The underlying xml tag
    • Method Detail

      • setFlag

        public final void setFlag​(int flag,
                                  boolean set)
        THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT USE IT!
        Parameters:
        flag - The flag to set
        set - True to turn the flag on, false to turn it off
      • getFlag

        public final boolean getFlag​(int flag)
        THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT USE IT!
        Parameters:
        flag - The flag to test
        Returns:
        True if the flag is set
      • getLength

        public final int getLength()
        Gets the length of the tag in characters.
        Returns:
        The tag's length
      • getPos

        public final int getPos()
        Returns:
        Tag location (index in input string)
        See Also:
        XmlTag.getPos()
      • isOpen

        public final boolean isOpen()
        Returns:
        True if this tag is an open tag
        See Also:
        XmlTag.isOpen()
      • toString

        public final String toString()
        Converts this object to a string representation.
        Overrides:
        toString in class Object
        Returns:
        String version of this object
      • writeOutput

        public final void writeOutput​(Response response,
                                      boolean stripWicketAttributes,
                                      String namespace)
        Write the tag to the response
        Parameters:
        response - The response to write to
        stripWicketAttributes - if true, wicket:id are removed from output
        namespace - Wicket's namespace to use
      • getXmlTag

        public final XmlTag getXmlTag()
        Returns:
        Returns the underlying xml tag.
      • equalTo

        public boolean equalTo​(MarkupElement element)
        Description copied from class: MarkupElement
        This is not an implementation of equals because we don't care about hashCodes for MarkupElements yet. Also, this method only compares the namespace, name and attributes of the given MarkupElements.
        Specified by:
        equalTo in class MarkupElement
        Parameters:
        element - The markup element to compare with
        Returns:
        True if the other element equals this one
      • onBeforeRender

        public void onBeforeRender​(Component component,
                                   MarkupStream markupStream)
        For subclasses to override. Gets called just before a Component gets rendered. It is guaranteed that the markupStream is set on the Component and determineVisibility is not yet called.
        Parameters:
        component - The component that is about to be rendered
        markupStream - The current amrkup stream