Class TagElement
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 SummaryConstructorsConstructorDescriptionTagElement(Element elem) Creates a generic HTML TagElement class withfictionalequals tofalse.TagElement(Element elem, boolean fictional) Creates a generic HTML TagElement class.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturnstrueif this tag causes a line break to the flow of data, otherwise returnsfalse.booleanReturnstrueif the tag is fictional.Returns the element.Returns the tag constant corresponding to the name of theelementbooleanReturnstrueif this tag is pre-formatted.
- 
Constructor Details- 
TagElementCreates a generic HTML TagElement class withfictionalequals tofalse.- Parameters:
- elem- an element
 
- 
TagElementCreates a generic HTML TagElement class.- Parameters:
- elem- an element
- fictional- if- truethe tag is inserted by error recovery.
 
 
- 
- 
Method Details- 
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
 
- 
getElement
- 
getHTMLTagReturns 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.
 
 
-