Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.swing.text.html.parser
Class TagElement  view TagElement download TagElement.java

java.lang.Object
  extended byjavax.swing.text.html.parser.TagElement

public class TagElement
extends java.lang.Object

The SGML element, defining a single html tag.


Field Summary
private  Element element
          The Element the tag was constructed from.
private  boolean fictional
          The 'fictional' flag.
private  javax.swing.text.html.HTML.Tag tag
          The coresponding HTML tag, assigned once in constructor.
 
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.
 javax.swing.text.html.HTML.Tag getHTMLTag()
          Get the corresponding HTML tag.
 boolean isPreformatted()
          Calls isPreformatted() for the corresponding html tag and returns the obtained value.
 java.lang.String toString()
          Returns string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

element

private final Element element
The Element the tag was constructed from.


tag

private final javax.swing.text.html.HTML.Tag tag
The coresponding HTML tag, assigned once in constructor.


fictional

private final boolean fictional
The 'fictional' flag.

Constructor Detail

TagElement

public TagElement(Element an_element)
Creates the html tag element from the defintion, stored in the given element. Sets the flag 'fictional' to false.


TagElement

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.

Method Detail

getElement

public Element getElement()
Get the element from that the tag was constructed.


getHTMLTag

public javax.swing.text.html.HTML.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.


isPreformatted

public boolean isPreformatted()
Calls isPreformatted() for the corresponding html tag and returns the obtained value.


breaksFlow

public boolean breaksFlow()
Calls breaksFlow() for the corresponding html tag and returns the obtained value.


fictional

public boolean fictional()
Get the value of the flag 'fictional'.


toString

public java.lang.String toString()
Returns string representation of this object.