Package Summary  Overview Summary

class:TagElement [NONE]


  • public class TagElement
    extends Object
    
    A generic HTML TagElement class. The methods define how white space is interpreted around the tag.

constructor:<init>(javax.swing.text.html.parser.Element) [NONE]

  • TagElement

    public TagElement​(Element elem)
    Creates a generic HTML TagElement class with fictional equals to false.
    Parameters:
    elem - an element

constructor:<init>(javax.swing.text.html.parser.Element,boolean) [NONE]

  • TagElement

    public TagElement​(Element elem,
                      boolean fictional)
    Creates a generic HTML TagElement class.
    Parameters:
    elem - an element
    fictional - if true the tag is inserted by error recovery.

method:breaksFlow() [NONE]

  • breaksFlow

    public boolean breaksFlow()
    Returns true if this tag causes a line break to the flow of data, otherwise returns false.
    Returns:
    true if this tag causes a line break to the flow of data, otherwise returns false

method:isPreformatted() [NONE]

  • isPreformatted

    public boolean isPreformatted()
    Returns true if this tag is pre-formatted.
    Returns:
    true if this tag is pre-formatted, otherwise returns false

method:getElement() [NONE]

  • getElement

    public Element getElement()
    Returns the element.
    Returns:
    the element

method:getHTMLTag() [NONE]

  • getHTMLTag

    public HTML.Tag getHTMLTag()
    Returns the tag constant corresponding to the name of the element
    Returns:
    the tag constant corresponding to the name of the element

method:fictional() [NONE]

  • fictional

    public boolean fictional()
    Returns true if the tag is fictional.
    Returns:
    true if the tag is fictional.

© 2019 Oracle Corporation and/or its affiliates