- 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 SummaryConstructors 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 SummaryAll 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- 
TagElementpublic TagElement(Element elem) Creates a generic HTML TagElement class withfictionalequals tofalse.- Parameters:
- elem- an element
 
 - 
TagElementpublic TagElement(Element elem, boolean fictional) Creates a generic HTML TagElement class.- Parameters:
- elem- an element
- fictional- if- truethe tag is inserted by error recovery.
 
 
- 
 - 
Method Detail- 
breaksFlowpublic 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 returns- false
 
 - 
isPreformattedpublic boolean isPreformatted() Returnstrueif this tag is pre-formatted.- Returns:
- trueif this tag is pre-formatted, otherwise returns- false
 
 - 
getElementpublic Element getElement() Returns the element.- Returns:
- the element
 
 - 
getHTMLTagpublic HTML.Tag getHTMLTag() Returns the tag constant corresponding to the name of theelement- Returns:
- the tag constant corresponding to the name of the element
 
 - 
fictionalpublic boolean fictional() Returnstrueif the tag is fictional.- Returns:
- trueif the tag is fictional.
 
 
- 
 
-