java.lang.Object
javax.swing.text.html.parser.TagElement
A generic HTML TagElement class. The methods define how white
space is interpreted around the tag.
-
Constructor Summary
ConstructorDescriptionTagElement
(Element elem) Creates a generic HTML TagElement class withfictional
equals tofalse
.TagElement
(Element elem, boolean fictional) Creates a generic HTML TagElement class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if this tag causes a line break to the flow of data, otherwise returnsfalse
.boolean
Returnstrue
if the tag is fictional.Returns the element.Returns the tag constant corresponding to the name of theelement
boolean
Returnstrue
if this tag is pre-formatted.
-
Constructor Details
-
TagElement
Creates a generic HTML TagElement class withfictional
equals tofalse
.- Parameters:
elem
- an element
-
TagElement
Creates a generic HTML TagElement class.- Parameters:
elem
- an elementfictional
- iftrue
the tag is inserted by error recovery.
-
-
Method Details
-
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
Returns the element.- Returns:
- the element
-
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.
-