javax.swing.text.html.parser
Class TagElement
public
class
TagElement
extends Object
The SGML element, defining a single html tag.
Constructor Summary |
| TagElement(Element an_element)
Creates the html tag element from the defintion, stored in the
given element. |
| TagElement(Element an_element, boolean is_fictional)
Creates the html tag element from the defintion, stored in the
given element, setting the flag 'fictional' to the given value. |
Method Summary |
boolean | breaksFlow()
Calls breaksFlow() for the corresponding html tag and returns
the obtained value. |
boolean | fictional()
Get the value of the flag 'fictional'. |
Element | getElement()
Get the element from that the tag was constructed. |
Tag | getHTMLTag()
Get the corresponding HTML tag. |
boolean | isPreformatted()
Calls isPreformatted() for the corresponding html tag and returns
the obtained value. |
String | toString()
Returns string representation of this object. |
public TagElement(
Element an_element)
Creates the html tag element from the defintion, stored in the
given element. Sets the flag 'fictional' to false.
Parameters: an_element
public TagElement(
Element an_element, boolean is_fictional)
Creates the html tag element from the defintion, stored in the
given element, setting the flag 'fictional' to the given value.
public boolean breaksFlow()
Calls breaksFlow() for the corresponding html tag and returns
the obtained value.
public boolean fictional()
Get the value of the flag 'fictional'.
Get the element from that the tag was constructed.
public Tag getHTMLTag()
Get the corresponding HTML tag. This is either one of the
pre-defined HTML tags or the instance of the UnknownTag with the
element name.
public boolean isPreformatted()
Calls isPreformatted() for the corresponding html tag and returns
the obtained value.
public String toString()
Returns string representation of this object.