APIdia Launch Partner
Top Description Fields Constructors Methods
javax.swing.text.html.parser

public Class TagElement

extends Object
Class Inheritance
Imports
javax.swing.text.html.HTML

A generic HTML TagElement class. The methods define how white space is interpreted around the tag.
Author
Sunita Mani

Field Summary

Modifier and TypeField and Description
pack-priv Element
pack-priv HTML.Tag
pack-priv boolean

Constructor Summary

AccessConstructor and Description
public
TagElement(Element
an element
elem
)

Creates a generic HTML TagElement class with fictional equals to false.

public
TagElement(Element
an element
elem
,
boolean
if true the tag is inserted by error recovery.
fictional
)

Creates a generic HTML TagElement class.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if this tag causes a line break to the flow of data, otherwise returns false
breaksFlow
()

Returns true if this tag causes a line break to the flow of data, otherwise returns false.

public boolean

Returns:

true if the tag is fictional.
fictional
()

Returns true if the tag is fictional.

public Element

Returns:

the element
getElement
()

Returns the element.

public HTML.Tag

Returns:

the tag constant corresponding to the name of the element
getHTMLTag
()

Returns the tag constant corresponding to the name of the element

public boolean

Returns:

true if this tag is pre-formatted, otherwise returns false
isPreformatted
()

Returns true if this tag is pre-formatted.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

elemback to summary
pack-priv Element elem
htmlTagback to summary
pack-priv HTML.Tag htmlTag
insertedByErrorRecoveryback to summary
pack-priv boolean insertedByErrorRecovery

Constructor Detail

TagElementback to summary
public TagElement(Element elem)

Creates a generic HTML TagElement class with fictional equals to false.

Parameters
elem:Element

an element

TagElementback to summary
public TagElement(Element elem, boolean fictional)

Creates a generic HTML TagElement class.

Parameters
elem:Element

an element

fictional:boolean

if true the tag is inserted by error recovery.

Method Detail

breaksFlowback to summary
public boolean breaksFlow()

Returns true if this tag causes a line break to the flow of data, otherwise returns false.

Returns:boolean

true if this tag causes a line break to the flow of data, otherwise returns false

fictionalback to summary
public boolean fictional()

Returns true if the tag is fictional.

Returns:boolean

true if the tag is fictional.

getElementback to summary
public Element getElement()

Returns the element.

Returns:Element

the element

getHTMLTagback to summary
public HTML.Tag getHTMLTag()

Returns the tag constant corresponding to the name of the element

Returns:HTML.Tag

the tag constant corresponding to the name of the element

isPreformattedback to summary
public boolean isPreformatted()

Returns true if this tag is pre-formatted.

Returns:boolean

true if this tag is pre-formatted, otherwise returns false