- 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 withfictionalequals 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 booleanbreaksFlow()Returnstrueif this tag causes a line break to the flow of data, otherwise returnsfalse.booleanfictional()Returnstrueif the tag is fictional.ElementgetElement()Returns the element.HTML.TaggetHTMLTag()Returns the tag constant corresponding to the name of theelementbooleanisPreformatted()Returnstrueif this tag is pre-formatted.
-
-
-
Constructor Detail
-
TagElement
public TagElement(Element elem)
Creates a generic HTML TagElement class withfictionalequals tofalse.- Parameters:
elem- an element
-
TagElement
public TagElement(Element elem, boolean fictional)
Creates a generic HTML TagElement class.- Parameters:
elem- an elementfictional- iftruethe tag is inserted by error recovery.
-
-
Method Detail
-
breaksFlow
public boolean breaksFlow()
Returnstrueif this tag causes a line break to the flow of data, otherwise returnsfalse.- Returns:
trueif this tag causes a line break to the flow of data, otherwise returnsfalse
-
isPreformatted
public boolean isPreformatted()
Returnstrueif this tag is pre-formatted.- Returns:
trueif 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()
Returnstrueif the tag is fictional.- Returns:
trueif the tag is fictional.
-
-