|
|||||||||
Home >> All >> javax >> swing >> text >> [ html overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
javax.swing.text.html
Class HTML.Tag

java.lang.Objectjavax.swing.text.html.HTML.Tag
- Direct Known Subclasses:
- HTML.UnknownTag
- Enclosing class:
- HTML
- public static class HTML.Tag
- extends java.lang.Object
Represents a HTML tag.
Field Summary | |
static HTML.Tag |
A
The <a> tag |
static HTML.Tag |
ADDRESS
The <address> tag |
static HTML.Tag |
APPLET
The <applet> tag |
static HTML.Tag |
AREA
The <area> tag |
static HTML.Tag |
B
The <b> tag |
static HTML.Tag |
BASE
The <base> tag |
static HTML.Tag |
BASEFONT
The <basefont> tag |
static HTML.Tag |
BIG
The <big> tag |
static HTML.Tag |
BLOCKQUOTE
The <blockquote> tag , breaks flow, block tag. |
static HTML.Tag |
BODY
The <body> tag , breaks flow, block tag. |
static HTML.Tag |
BR
The <br> tag , breaks flow. |
static HTML.Tag |
CAPTION
The <caption> tag |
static HTML.Tag |
CENTER
The <center> tag , breaks flow. |
static HTML.Tag |
CITE
The <cite> tag |
static HTML.Tag |
CODE
The <code> tag |
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
The <dd> tag , breaks flow, block tag. |
static HTML.Tag |
DFN
The <dfn> tag |
static HTML.Tag |
DIR
The <dir> tag , breaks flow, block tag. |
static HTML.Tag |
DIV
The <div> tag , breaks flow, block tag. |
static HTML.Tag |
DL
The <dl> tag , breaks flow, block tag. |
static HTML.Tag |
DT
The <dt> tag , breaks flow, block tag. |
static HTML.Tag |
EM
The <em> tag |
(package private) int |
flags
|
static HTML.Tag |
FONT
The <font> tag |
static HTML.Tag |
FORM
The <form> tag , breaks flow. |
static HTML.Tag |
FRAME
The <frame> tag |
static HTML.Tag |
FRAMESET
The <frameset> tag |
static HTML.Tag |
H1
The <h1> tag , breaks flow, block tag. |
static HTML.Tag |
H2
The <h2> tag , breaks flow, block tag. |
static HTML.Tag |
H3
The <h3> tag , breaks flow, block tag. |
static HTML.Tag |
H4
The <h4> tag , breaks flow, block tag. |
static HTML.Tag |
H5
The <h5> tag , breaks flow, block tag. |
static HTML.Tag |
H6
The <h6> tag , breaks flow, block tag. |
static HTML.Tag |
HEAD
The <head> tag , breaks flow, block tag. |
static HTML.Tag |
HR
The <hr> tag , breaks flow. |
static HTML.Tag |
HTML
The <html> tag , breaks flow. |
static HTML.Tag |
I
The <i> tag |
static HTML.Tag |
IMG
The <img> tag |
static HTML.Tag |
IMPLIED
All text content must be in a paragraph element. |
static HTML.Tag |
INPUT
The <input> tag |
static HTML.Tag |
ISINDEX
The <isindex> tag , breaks flow. |
static HTML.Tag |
KBD
The <kbd> tag |
static HTML.Tag |
LI
The <li> tag , breaks flow, block tag. |
static HTML.Tag |
LINK
The <link> tag |
static HTML.Tag |
MAP
The <map> tag |
static HTML.Tag |
MENU
The <menu> tag , breaks flow, block tag. |
static HTML.Tag |
META
The <meta> tag |
(package private) java.lang.String |
name
|
(package private) static HTML.Tag |
NOBR
The <nobr> tag |
static HTML.Tag |
NOFRAMES
The <noframes> tag , breaks flow, block tag. |
static HTML.Tag |
OBJECT
The <object> tag |
static HTML.Tag |
OL
The <ol> tag , breaks flow, block tag. |
static HTML.Tag |
OPTION
The <option> tag |
static HTML.Tag |
P
The <p> tag , breaks flow, block tag. |
static HTML.Tag |
PARAM
The <param> tag |
static HTML.Tag |
PRE
The <pre> tag , breaks flow, block tag, preformatted. |
static HTML.Tag |
S
The <s> tag |
static HTML.Tag |
SAMP
The <samp> tag |
static HTML.Tag |
SCRIPT
The <script> tag |
static HTML.Tag |
SELECT
The <select> tag |
static HTML.Tag |
SMALL
The <small> tag |
static HTML.Tag |
SPAN
The <span> tag |
static HTML.Tag |
STRIKE
The <strike> tag |
static HTML.Tag |
STRONG
The <strong> tag |
static HTML.Tag |
STYLE
The <style> tag |
static HTML.Tag |
SUB
The <sub> tag |
static HTML.Tag |
SUP
The <sup> tag |
static HTML.Tag |
TABLE
The <table> tag , block tag. |
static HTML.Tag |
TD
The <td> tag , breaks flow, block tag. |
static HTML.Tag |
TEXTAREA
The <textarea> tag , preformatted. |
static HTML.Tag |
TH
The <th> tag , breaks flow, block tag. |
static HTML.Tag |
TITLE
The <title> tag , breaks flow, block tag. |
private static int |
TOTAL_SYNTHETIC_TAGS
Total number of syntetic tags, delared in the Tag class. |
static HTML.Tag |
TR
The <tr> tag , block tag. |
static HTML.Tag |
TT
The <tt> tag |
static HTML.Tag |
U
The <u> tag |
static HTML.Tag |
UL
The <ul> tag , breaks flow, block tag. |
static HTML.Tag |
VAR
The <var> tag |
Constructor Summary | |
|
HTML.Tag()
Create the unitialised instance of HTML.Tag. |
protected |
HTML.Tag(java.lang.String id)
Creates a new Tag with the specified id, and with causesBreak and isBlock set to false. |
protected |
HTML.Tag(java.lang.String id,
boolean causesBreak,
boolean isBlock)
Creates a new Tag with the specified tag name and causesBreak and isBlock properties. |
(package private) |
HTML.Tag(java.lang.String id,
int a_flags)
Create a tag taking flags. |
Method Summary | |
boolean |
breaksFlow()
Returns true if this tag causes a line break to the flow of text |
(package private) static HTML.Tag[] |
getAllTags()
Return an array of HTML tags, declared in HTML.Tag class. |
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 |
(package private) boolean |
isSyntetic()
Returns true for tags, generated by the html reader (COMMENT, CONTENT and IMPLIED). |
java.lang.String |
toString()
Returns the tag name. |
private static void |
unexpected(java.lang.Exception ex)
|
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
- The <a> tag
ADDRESS
public static final HTML.Tag ADDRESS
- The <address> tag
APPLET
public static final HTML.Tag APPLET
- The <applet> tag
AREA
public static final HTML.Tag AREA
- The <area> tag
B
public static final HTML.Tag B
- The <b> tag
BASE
public static final HTML.Tag BASE
- The <base> tag
BASEFONT
public static final HTML.Tag BASEFONT
- The <basefont> tag
BIG
public static final HTML.Tag BIG
- The <big> tag
BLOCKQUOTE
public static final HTML.Tag BLOCKQUOTE
- The <blockquote> tag , breaks flow, block tag.
BODY
public static final HTML.Tag BODY
- The <body> tag , breaks flow, block tag.
BR
public static final HTML.Tag BR
- The <br> tag , breaks flow.
CAPTION
public static final HTML.Tag CAPTION
- The <caption> tag
CENTER
public static final HTML.Tag CENTER
- The <center> tag , breaks flow.
CITE
public static final HTML.Tag CITE
- The <cite> tag
CODE
public static final HTML.Tag CODE
- The <code> tag
DD
public static final HTML.Tag DD
- The <dd> tag , breaks flow, block tag.
DFN
public static final HTML.Tag DFN
- The <dfn> tag
DIR
public static final HTML.Tag DIR
- The <dir> tag , breaks flow, block tag.
DIV
public static final HTML.Tag DIV
- The <div> tag , breaks flow, block tag.
DL
public static final HTML.Tag DL
- The <dl> tag , breaks flow, block tag.
DT
public static final HTML.Tag DT
- The <dt> tag , breaks flow, block tag.
EM
public static final HTML.Tag EM
- The <em> tag
FONT
public static final HTML.Tag FONT
- The <font> tag
FORM
public static final HTML.Tag FORM
- The <form> tag , breaks flow.
FRAME
public static final HTML.Tag FRAME
- The <frame> tag
FRAMESET
public static final HTML.Tag FRAMESET
- The <frameset> tag
H1
public static final HTML.Tag H1
- The <h1> tag , breaks flow, block tag.
H2
public static final HTML.Tag H2
- The <h2> tag , breaks flow, block tag.
H3
public static final HTML.Tag H3
- The <h3> tag , breaks flow, block tag.
H4
public static final HTML.Tag H4
- The <h4> tag , breaks flow, block tag.
H5
public static final HTML.Tag H5
- The <h5> tag , breaks flow, block tag.
H6
public static final HTML.Tag H6
- The <h6> tag , breaks flow, block tag.
HEAD
public static final HTML.Tag HEAD
- The <head> tag , breaks flow, block tag.
HR
public static final HTML.Tag HR
- The <hr> tag , breaks flow.
HTML
public static final HTML.Tag HTML
- The <html> tag , breaks flow.
I
public static final HTML.Tag I
- The <i> tag
IMG
public static final HTML.Tag IMG
- The <img> tag
INPUT
public static final HTML.Tag INPUT
- The <input> tag
ISINDEX
public static final HTML.Tag ISINDEX
- The <isindex> tag , breaks flow.
KBD
public static final HTML.Tag KBD
- The <kbd> tag
LI
public static final HTML.Tag LI
- The <li> tag , breaks flow, block tag.
LINK
public static final HTML.Tag LINK
- The <link> tag
MAP
public static final HTML.Tag MAP
- The <map> tag
MENU
public static final HTML.Tag MENU
- The <menu> tag , breaks flow, block tag.
META
public static final HTML.Tag META
- The <meta> tag
NOBR
static final HTML.Tag NOBR
- The <nobr> tag
NOFRAMES
public static final HTML.Tag NOFRAMES
- The <noframes> tag , breaks flow, block tag.
OBJECT
public static final HTML.Tag OBJECT
- The <object> tag
OL
public static final HTML.Tag OL
- The <ol> tag , breaks flow, block tag.
OPTION
public static final HTML.Tag OPTION
- The <option> tag
P
public static final HTML.Tag P
- The <p> tag , breaks flow, block tag.
PARAM
public static final HTML.Tag PARAM
- The <param> tag
PRE
public static final HTML.Tag PRE
- The <pre> tag , breaks flow, block tag, preformatted.
S
public static final HTML.Tag S
- The <s> tag
SAMP
public static final HTML.Tag SAMP
- The <samp> tag
SCRIPT
public static final HTML.Tag SCRIPT
- The <script> tag
SELECT
public static final HTML.Tag SELECT
- The <select> tag
SMALL
public static final HTML.Tag SMALL
- The <small> tag
SPAN
public static final HTML.Tag SPAN
- The <span> tag
STRIKE
public static final HTML.Tag STRIKE
- The <strike> tag
STRONG
public static final HTML.Tag STRONG
- The <strong> tag
STYLE
public static final HTML.Tag STYLE
- The <style> tag
SUB
public static final HTML.Tag SUB
- The <sub> tag
SUP
public static final HTML.Tag SUP
- The <sup> tag
TABLE
public static final HTML.Tag TABLE
- The <table> tag , block tag.
TD
public static final HTML.Tag TD
- The <td> tag , breaks flow, block tag.
TEXTAREA
public static final HTML.Tag TEXTAREA
- The <textarea> tag , preformatted.
TH
public static final HTML.Tag TH
- The <th> tag , breaks flow, block tag.
TITLE
public static final HTML.Tag TITLE
- The <title> tag , breaks flow, block tag.
TR
public static final HTML.Tag TR
- The <tr> tag , block tag.
TT
public static final HTML.Tag TT
- The <tt> tag
U
public static final HTML.Tag U
- The <u> tag
UL
public static final HTML.Tag UL
- The <ul> tag , breaks flow, block tag.
VAR
public static final HTML.Tag VAR
- The <var> tag
TOTAL_SYNTHETIC_TAGS
private static final int TOTAL_SYNTHETIC_TAGS
- Total number of syntetic tags, delared in the Tag class.
This must be adjusted if the new synthetic tags are declared.
Otherwise the HTML.getAllTags() will not work as expected.
- See Also:
- Constant Field Values
COMMENT
public static final HTML.Tag COMMENT
- All comments are labeled with this tag.
This tag is not included into the array, returned by getAllTags().
toString() returns 'comment'. HTML reader synthesizes this tag.
CONTENT
public static final HTML.Tag CONTENT
- All text content is labeled with this tag.
This tag is not included into the array, returned by getAllTags().
toString() returns 'content'. HTML reader synthesizes this tag.
IMPLIED
public static final HTML.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.
toString() returns 'p-implied'. HTML reader synthesizes this tag.
name
final java.lang.String name
flags
final int flags
Constructor Detail |
HTML.Tag
public HTML.Tag()
- Create the unitialised instance of HTML.Tag.
The
breaksFlow()
55 ,isBlock()
55 andisPreformatted()
55 will always return false. ThetoString()
55 will returnnull
. - Since:
- 1.3
HTML.Tag
protected HTML.Tag(java.lang.String id)
- Creates a new Tag with the specified id, and with causesBreak
and isBlock set to false.
HTML.Tag
protected HTML.Tag(java.lang.String id, boolean causesBreak, boolean isBlock)
- Creates a new Tag with the specified tag name and
causesBreak and isBlock properties.
HTML.Tag
HTML.Tag(java.lang.String id, int a_flags)
- Create a tag taking flags.
Method Detail |
isBlock
public boolean isBlock()
- Returns true if this tag is a block tag, which is a tag used to
add structure to a document.
isPreformatted
public boolean isPreformatted()
- Returns true if this tag is pre-formatted, which is true if
the tag is either PRE or TEXTAREA
breaksFlow
public boolean breaksFlow()
- Returns true if this tag causes a line break to the flow of text
toString
public java.lang.String toString()
- Returns the tag name. The names of the built-in tags are always
returned in lowercase.
getAllTags
static HTML.Tag[] getAllTags()
- Return an array of HTML tags, declared in HTML.Tag class.
WARNING: This method expects that the Tags are the only
public fields declared in the Tag class.
isSyntetic
boolean isSyntetic()
- Returns true for tags, generated by the html reader
(COMMENT, CONTENT and IMPLIED).
unexpected
private static void unexpected(java.lang.Exception ex) throws java.lang.Error
|
|||||||||
Home >> All >> javax >> swing >> text >> [ html overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |