Home » openjdk-7 » javax » swing » text » html » [javadoc | source]
javax.swing.text.html
public static class: HTML.Tag [javadoc | source]
java.lang.Object
   javax.swing.text.html.HTML$Tag

Direct Known Subclasses:
    UnknownTag

Typesafe enumeration for an HTML tag. Although the set of HTML tags is a closed set, we have left the set open so that people can add their own tag types to their custom parser and still communicate to the reader.
Field Summary
 boolean blockTag     
 boolean breakTag     
 String name     
 boolean unknown     
public static final  Tag A     
public static final  Tag ADDRESS     
public static final  Tag APPLET     
public static final  Tag AREA     
public static final  Tag B     
public static final  Tag BASE     
public static final  Tag BASEFONT     
public static final  Tag BIG     
public static final  Tag BLOCKQUOTE     
public static final  Tag BODY     
public static final  Tag BR     
public static final  Tag CAPTION     
public static final  Tag CENTER     
public static final  Tag CITE     
public static final  Tag CODE     
public static final  Tag DD     
public static final  Tag DFN     
public static final  Tag DIR     
public static final  Tag DIV     
public static final  Tag DL     
public static final  Tag DT     
public static final  Tag EM     
public static final  Tag FONT     
public static final  Tag FORM     
public static final  Tag FRAME     
public static final  Tag FRAMESET     
public static final  Tag H1     
public static final  Tag H2     
public static final  Tag H3     
public static final  Tag H4     
public static final  Tag H5     
public static final  Tag H6     
public static final  Tag HEAD     
public static final  Tag HR     
public static final  Tag HTML     
public static final  Tag I     
public static final  Tag IMG     
public static final  Tag INPUT     
public static final  Tag ISINDEX     
public static final  Tag KBD     
public static final  Tag LI     
public static final  Tag LINK     
public static final  Tag MAP     
public static final  Tag MENU     
public static final  Tag META     
static final  Tag NOBR     
public static final  Tag NOFRAMES     
public static final  Tag OBJECT     
public static final  Tag OL     
public static final  Tag OPTION     
public static final  Tag P     
public static final  Tag PARAM     
public static final  Tag PRE     
public static final  Tag SAMP     
public static final  Tag SCRIPT     
public static final  Tag SELECT     
public static final  Tag SMALL     
public static final  Tag SPAN     
public static final  Tag STRIKE     
public static final  Tag S     
public static final  Tag STRONG     
public static final  Tag STYLE     
public static final  Tag SUB     
public static final  Tag SUP     
public static final  Tag TABLE     
public static final  Tag TD     
public static final  Tag TEXTAREA     
public static final  Tag TH     
public static final  Tag TITLE     
public static final  Tag TR     
public static final  Tag TT     
public static final  Tag U     
public static final  Tag UL     
public static final  Tag VAR     
public static final  Tag IMPLIED    All text content must be in a paragraph element. If a paragraph didn't exist when content was encountered, a paragraph is manufactured.

This is a tag synthesized by the HTML reader. Since elements are identified by their tag type, we create a some fake tag types to mark the elements that were manufactured. 

public static final  Tag CONTENT    All text content is labeled with this tag.

This is a tag synthesized by the HTML reader. Since elements are identified by their tag type, we create a some fake tag types to mark the elements that were manufactured. 

public static final  Tag COMMENT    All comments are labeled with this tag.

This is a tag synthesized by the HTML reader. Since elements are identified by their tag type, we create a some fake tag types to mark the elements that were manufactured. 

static final  Tag[] allTags     
Constructor:
 public Tag() 
 protected Tag(String id) 
    Creates a new Tag with the specified id, and with causesBreak and isBlock set to false.
    Parameters:
    id - the id of the new tag
 protected Tag(String id,
    boolean causesBreak,
    boolean isBlock) 
    Creates a new Tag with the specified id; causesBreak and isBlock are defined by the user.
    Parameters:
    id - the id of the new tag
    causesBreak - true if this tag causes a break to the flow of data
    isBlock - true if the tag is used to add structure to a document
Method from javax.swing.text.html.HTML$Tag Summary:
breaksFlow,   isBlock,   isParagraph,   isPreformatted,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.text.html.HTML$Tag Detail:
 public boolean breaksFlow() 
    Returns true if this tag causes a line break to the flow of data, otherwise returns false.
 public boolean isBlock() 
    Returns true if this tag is a block tag, which is a tag used to add structure to a document.
 boolean isParagraph() 
    Returns true if this tag is considered to be a paragraph in the internal HTML model. false - otherwise.
 public boolean isPreformatted() 
    Returns true if this tag is pre-formatted, which is true if the tag is either PRE or TEXTAREA.
 public String toString() 
    Returns the string representation of the tag.