java.lang.Object | |
↳ | javax.swing.text.html.HTML.Tag |
Known Direct Subclasses |
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.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | |||||||||||
ADDRESS | |||||||||||
APPLET | |||||||||||
AREA | |||||||||||
B | |||||||||||
BASE | |||||||||||
BASEFONT | |||||||||||
BIG | |||||||||||
BLOCKQUOTE | |||||||||||
BODY | |||||||||||
BR | |||||||||||
CAPTION | |||||||||||
CENTER | |||||||||||
CITE | |||||||||||
CODE | |||||||||||
COMMENT | All comments are labeled with this tag. | ||||||||||
CONTENT | All text content is labeled with this tag. | ||||||||||
DD | |||||||||||
DFN | |||||||||||
DIR | |||||||||||
DIV | |||||||||||
DL | |||||||||||
DT | |||||||||||
EM | |||||||||||
FONT | |||||||||||
FORM | |||||||||||
FRAME | |||||||||||
FRAMESET | |||||||||||
H1 | |||||||||||
H2 | |||||||||||
H3 | |||||||||||
H4 | |||||||||||
H5 | |||||||||||
H6 | |||||||||||
HEAD | |||||||||||
HR | |||||||||||
HTML | |||||||||||
I | |||||||||||
IMG | |||||||||||
IMPLIED | All text content must be in a paragraph element. | ||||||||||
INPUT | |||||||||||
ISINDEX | |||||||||||
KBD | |||||||||||
LI | |||||||||||
LINK | |||||||||||
MAP | |||||||||||
MENU | |||||||||||
META | |||||||||||
NOFRAMES | |||||||||||
OBJECT | |||||||||||
OL | |||||||||||
OPTION | |||||||||||
P | |||||||||||
PARAM | |||||||||||
PRE | |||||||||||
S | |||||||||||
SAMP | |||||||||||
SCRIPT | |||||||||||
SELECT | |||||||||||
SMALL | |||||||||||
SPAN | |||||||||||
STRIKE | |||||||||||
STRONG | |||||||||||
STYLE | |||||||||||
SUB | |||||||||||
SUP | |||||||||||
TABLE | |||||||||||
TD | |||||||||||
TEXTAREA | |||||||||||
TH | |||||||||||
TITLE | |||||||||||
TR | |||||||||||
TT | |||||||||||
U | |||||||||||
UL | |||||||||||
VAR |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
Tag with the specified id ,
and with causesBreak and isBlock
set to false . | |||||||||||
Creates a new
Tag with the specified id ;
causesBreak and isBlock are defined
by the user. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns
true if this tag causes a
line break to the flow of data, otherwise returns
false . | |||||||||||
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 pre-formatted,
which is true if the tag is either PRE or
TEXTAREA . | |||||||||||
Returns the string representation of the
tag.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
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.
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.
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.
Creates a new Tag
with the specified id
,
and with causesBreak
and isBlock
set to false
.
id | the id of the new tag |
---|
Creates a new Tag
with the specified id
;
causesBreak
and isBlock
are defined
by the user.
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
|
Returns true
if this tag causes a
line break to the flow of data, otherwise returns
false
.
true
if this tag causes a
line break to the flow of data, otherwise returns
false
Returns true
if this tag is a block
tag, which is a tag used to add structure to a
document.
true
if this tag is a block
tag, otherwise returns false
Returns true
if this tag is pre-formatted,
which is true if the tag is either PRE
or
TEXTAREA
.
true
if this tag is pre-formatted,
otherwise returns false
Returns the string representation of the tag.
String
representation of the tag