- java.lang.Object
-
- javax.swing.text.html.parser.TagElement
-
public class TagElement extends Object
A generic HTML TagElement class. The methods define how white space is interpreted around the tag.
-
-
Constructor Summary
Constructors Constructor Description TagElement(Element elem)
Creates a generic HTML TagElement class withfictional
equals tofalse
.TagElement(Element elem, boolean fictional)
Creates a generic HTML TagElement class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
breaksFlow()
Returnstrue
if this tag causes a line break to the flow of data, otherwise returnsfalse
.boolean
fictional()
Returnstrue
if the tag is fictional.Element
getElement()
Returns the element.HTML.Tag
getHTMLTag()
Returns the tag constant corresponding to the name of theelement
boolean
isPreformatted()
Returnstrue
if this tag is pre-formatted.
-
-
-
Constructor Detail
-
TagElement
public TagElement(Element elem)
Creates a generic HTML TagElement class withfictional
equals tofalse
.- Parameters:
elem
- an element
-
TagElement
public TagElement(Element elem, boolean fictional)
Creates a generic HTML TagElement class.- Parameters:
elem
- an elementfictional
- iftrue
the tag is inserted by error recovery.
-
-
Method Detail
-
breaksFlow
public boolean breaksFlow()
Returnstrue
if this tag causes a line break to the flow of data, otherwise returnsfalse
.- Returns:
true
if this tag causes a line break to the flow of data, otherwise returnsfalse
-
isPreformatted
public boolean isPreformatted()
Returnstrue
if this tag is pre-formatted.- Returns:
true
if this tag is pre-formatted, otherwise returnsfalse
-
getElement
public Element getElement()
Returns the element.- Returns:
- the element
-
getHTMLTag
public HTML.Tag getHTMLTag()
Returns the tag constant corresponding to the name of theelement
- Returns:
- the tag constant corresponding to the name of the
element
-
fictional
public boolean fictional()
Returnstrue
if the tag is fictional.- Returns:
true
if the tag is fictional.
-
-