javax.swing.text.html
Class HTML.Tag

java.lang.Object
  extended by javax.swing.text.html.HTML.Tag
Direct Known Subclasses:
HTML.UnknownTag
Enclosing class:
HTML

public static class HTML.Tag
extends Object

Disabled: no SafeJ information.

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
static HTML.Tag A
           
static HTML.Tag ADDRESS
           
static HTML.Tag APPLET
           
static HTML.Tag AREA
           
static HTML.Tag B
           
static HTML.Tag BASE
           
static HTML.Tag BASEFONT
           
static HTML.Tag BIG
           
static HTML.Tag BLOCKQUOTE
           
static HTML.Tag BODY
           
static HTML.Tag BR
           
static HTML.Tag CAPTION
           
static HTML.Tag CENTER
           
static HTML.Tag CITE
           
static HTML.Tag CODE
           
static HTML.Tag COMMENT
          All comments are labeled with this tag.
static HTML.Tag CONTENT
          All text content is labeled with this tag.
static HTML.Tag DD
           
static HTML.Tag DFN
           
static HTML.Tag DIR
           
static HTML.Tag DIV
           
static HTML.Tag DL
           
static HTML.Tag DT
           
static HTML.Tag EM
           
static HTML.Tag FONT
           
static HTML.Tag FORM
           
static HTML.Tag FRAME
           
static HTML.Tag FRAMESET
           
static HTML.Tag H1
           
static HTML.Tag H2
           
static HTML.Tag H3
           
static HTML.Tag H4
           
static HTML.Tag H5
           
static HTML.Tag H6
           
static HTML.Tag HEAD
           
static HTML.Tag HR
           
static HTML.Tag HTML
           
static HTML.Tag I
           
static HTML.Tag IMG
           
static HTML.Tag IMPLIED
          All text content must be in a paragraph element.
static HTML.Tag INPUT
           
static HTML.Tag ISINDEX
           
static HTML.Tag KBD
           
static HTML.Tag LI
           
static HTML.Tag LINK
           
static HTML.Tag MAP
           
static HTML.Tag MENU
           
static HTML.Tag META
           
static HTML.Tag NOFRAMES
           
static HTML.Tag OBJECT
           
static HTML.Tag OL
           
static HTML.Tag OPTION
           
static HTML.Tag P
           
static HTML.Tag PARAM
           
static HTML.Tag PRE
           
static HTML.Tag S
           
static HTML.Tag SAMP
           
static HTML.Tag SCRIPT
           
static HTML.Tag SELECT
           
static HTML.Tag SMALL
           
static HTML.Tag SPAN
           
static HTML.Tag STRIKE
           
static HTML.Tag STRONG
           
static HTML.Tag STYLE
           
static HTML.Tag SUB
           
static HTML.Tag SUP
           
static HTML.Tag TABLE
           
static HTML.Tag TD
           
static HTML.Tag TEXTAREA
           
static HTML.Tag TH
           
static HTML.Tag TITLE
           
static HTML.Tag TR
           
static HTML.Tag TT
           
static HTML.Tag U
           
static HTML.Tag UL
           
static HTML.Tag VAR
           
 
Constructor Summary
  HTML.Tag()
           
protected HTML.Tag(String id)
          Creates a new Tag with the specified id, and with causesBreak and isBlock set to false.
protected HTML.Tag(String id, boolean causesBreak, boolean isBlock)
          Creates a new Tag with the specified id; causesBreak and isBlock are defined by the user.
 
Method Summary
 boolean breaksFlow()
          Returns true if this tag causes a line break to the flow of data, otherwise returns false.
 boolean isBlock()
          Returns true if this tag is a block tag, which is a tag used to add structure to a document.
 boolean isPreformatted()
          Returns true if this tag is pre-formatted, which is true if the tag is either PRE or TEXTAREA.
 String toString()
          Returns the string representation of the tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

A

public static final HTML.Tag A
Class is disabled.


ADDRESS

public static final HTML.Tag ADDRESS
Class is disabled.


APPLET

public static final HTML.Tag APPLET
Class is disabled.


AREA

public static final HTML.Tag AREA
Class is disabled.


B

public static final HTML.Tag B
Class is disabled.


BASE

public static final HTML.Tag BASE
Class is disabled.


BASEFONT

public static final HTML.Tag BASEFONT
Class is disabled.


BIG

public static final HTML.Tag BIG
Class is disabled.


BLOCKQUOTE

public static final HTML.Tag BLOCKQUOTE
Class is disabled.


BODY

public static final HTML.Tag BODY
Class is disabled.


BR

public static final HTML.Tag BR
Class is disabled.


CAPTION

public static final HTML.Tag CAPTION
Class is disabled.


CENTER

public static final HTML.Tag CENTER
Class is disabled.


CITE

public static final HTML.Tag CITE
Class is disabled.


CODE

public static final HTML.Tag CODE
Class is disabled.


DD

public static final HTML.Tag DD
Class is disabled.


DFN

public static final HTML.Tag DFN
Class is disabled.


DIR

public static final HTML.Tag DIR
Class is disabled.


DIV

public static final HTML.Tag DIV
Class is disabled.


DL

public static final HTML.Tag DL
Class is disabled.


DT

public static final HTML.Tag DT
Class is disabled.


EM

public static final HTML.Tag EM
Class is disabled.


FONT

public static final HTML.Tag FONT
Class is disabled.


FORM

public static final HTML.Tag FORM
Class is disabled.


FRAME

public static final HTML.Tag FRAME
Class is disabled.


FRAMESET

public static final HTML.Tag FRAMESET
Class is disabled.


H1

public static final HTML.Tag H1
Class is disabled.


H2

public static final HTML.Tag H2
Class is disabled.


H3

public static final HTML.Tag H3
Class is disabled.


H4

public static final HTML.Tag H4
Class is disabled.


H5

public static final HTML.Tag H5
Class is disabled.


H6

public static final HTML.Tag H6
Class is disabled.


HEAD

public static final HTML.Tag HEAD
Class is disabled.


HR

public static final HTML.Tag HR
Class is disabled.


HTML

public static final HTML.Tag HTML
Class is disabled.


I

public static final HTML.Tag I
Class is disabled.


IMG

public static final HTML.Tag IMG
Class is disabled.


INPUT

public static final HTML.Tag INPUT
Class is disabled.


ISINDEX

public static final HTML.Tag ISINDEX
Class is disabled.


KBD

public static final HTML.Tag KBD
Class is disabled.


LI

public static final HTML.Tag LI
Class is disabled.


LINK

public static final HTML.Tag LINK
Class is disabled.


MAP

public static final HTML.Tag MAP
Class is disabled.


MENU

public static final HTML.Tag MENU
Class is disabled.


META

public static final HTML.Tag META
Class is disabled.


NOFRAMES

public static final HTML.Tag NOFRAMES
Class is disabled.


OBJECT

public static final HTML.Tag OBJECT
Class is disabled.


OL

public static final HTML.Tag OL
Class is disabled.


OPTION

public static final HTML.Tag OPTION
Class is disabled.


P

public static final HTML.Tag P
Class is disabled.


PARAM

public static final HTML.Tag PARAM
Class is disabled.


PRE

public static final HTML.Tag PRE
Class is disabled.


SAMP

public static final HTML.Tag SAMP
Class is disabled.


SCRIPT

public static final HTML.Tag SCRIPT
Class is disabled.


SELECT

public static final HTML.Tag SELECT
Class is disabled.


SMALL

public static final HTML.Tag SMALL
Class is disabled.


SPAN

public static final HTML.Tag SPAN
Class is disabled.


STRIKE

public static final HTML.Tag STRIKE
Class is disabled.


S

public static final HTML.Tag S
Class is disabled.


STRONG

public static final HTML.Tag STRONG
Class is disabled.


STYLE

public static final HTML.Tag STYLE
Class is disabled.


SUB

public static final HTML.Tag SUB
Class is disabled.


SUP

public static final HTML.Tag SUP
Class is disabled.


TABLE

public static final HTML.Tag TABLE
Class is disabled.


TD

public static final HTML.Tag TD
Class is disabled.


TEXTAREA

public static final HTML.Tag TEXTAREA
Class is disabled.


TH

public static final HTML.Tag TH
Class is disabled.


TITLE

public static final HTML.Tag TITLE
Class is disabled.


TR

public static final HTML.Tag TR
Class is disabled.


TT

public static final HTML.Tag TT
Class is disabled.


U

public static final HTML.Tag U
Class is disabled.


UL

public static final HTML.Tag UL
Class is disabled.


VAR

public static final HTML.Tag VAR
Class is disabled.


IMPLIED

public static final HTML.Tag IMPLIED
Class is disabled.

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.


CONTENT

public static final HTML.Tag CONTENT
Class is disabled.

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.


COMMENT

public static final HTML.Tag COMMENT
Class is disabled.

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.

Constructor Detail

HTML.Tag

public HTML.Tag()
Class is disabled.

Since:
1.3

HTML.Tag

protected HTML.Tag(String id)
Class is disabled.

Creates a new Tag with the specified id, and with causesBreak and isBlock set to false.

Parameters:
id - the id of the new tag

HTML.Tag

protected HTML.Tag(String id,
                   boolean causesBreak,
                   boolean isBlock)
Class is disabled.

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 Detail

isBlock

public boolean isBlock()
Class is disabled.

Returns true if this tag is a block tag, which is a tag used to add structure to a document.

Returns:
true if this tag is a block tag, otherwise returns false

breaksFlow

public boolean breaksFlow()
Class is disabled.

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

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

isPreformatted

public boolean isPreformatted()
Class is disabled.

Returns true if this tag is pre-formatted, which is true if the tag is either PRE or TEXTAREA.

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

toString

public String toString()
Class is disabled.

Returns the string representation of the tag.

Overrides:
toString in class Object
Returns:
the String representation of the tag