Uses of Class javax.swing.text.html.HTML.Tag (Java SE 21 & JDK 21)
Description: use: module: java.desktop, package: javax.swing.text.html, class: HTML, class: Tag

# Uses of Class
javax.swing.text.html.HTML.Tag

Packages that use HTML.Tag
Package
Description
javax.swing.text.html
Provides the class `HTMLEditorKit` and supporting classes for creating HTML text editors.
javax.swing.text.html.parser
Provides the default HTML parser, along with support classes.

- ## Uses of HTML.Tag in javax.swing.text.html

  Subclasses of HTML.Tag in javax.swing.text.html
  Modifier and Type
  Class
  Description
  `static class`
  `HTML.UnknownTag`
  Class represents unknown HTML tag.
  Fields in javax.swing.text.html declared as HTML.Tag
  Modifier and Type
  Field
  Description
  `static final HTML.Tag`
  HTML.Tag.`A`
  Tag <a>
  `static final HTML.Tag`
  HTML.Tag.`ADDRESS`
  Tag <address>
  `protected HTML.Tag`
  HTMLEditorKit.InsertHTMLTextAction.`addTag`
  Tag in HTML to start adding tags from.
  `protected HTML.Tag`
  HTMLEditorKit.InsertHTMLTextAction.`alternateAddTag`
  Alternate tag in HTML to start adding tags from if parentTag is not found and alternateParentTag is found.
  `protected HTML.Tag`
  HTMLEditorKit.InsertHTMLTextAction.`alternateParentTag`
  Alternate Tag to check for in the document if parentTag is not found.
  `static final HTML.Tag`
  HTML.Tag.`APPLET`
  Tag <applet>
  `static final HTML.Tag`
  HTML.Tag.`AREA`
  Tag <area>
  `static final HTML.Tag`
  HTML.Tag.`B`
  Tag <b>
  `static final HTML.Tag`
  HTML.Tag.`BASE`
  Tag <base>
  `static final HTML.Tag`
  HTML.Tag.`BASEFONT`
  Tag <basefont>
  `static final HTML.Tag`
  HTML.Tag.`BIG`
  Tag <big>
  `static final HTML.Tag`
  HTML.Tag.`BLOCKQUOTE`
  Tag <blockquote>
  `static final HTML.Tag`
  HTML.Tag.`BODY`
  Tag <body>
  `static final HTML.Tag`
  HTML.Tag.`BR`
  Tag <br>
  `static final HTML.Tag`
  HTML.Tag.`CAPTION`
  Tag <caption>
  `static final HTML.Tag`
  HTML.Tag.`CENTER`
  Tag <center>
  `static final HTML.Tag`
  HTML.Tag.`CITE`
  Tag <cite>
  `static final HTML.Tag`
  HTML.Tag.`CODE`
  Tag <code>
  `static final HTML.Tag`
  HTML.Tag.`COMMENT`
  All comments are labeled with this tag.
  `static final HTML.Tag`
  HTML.Tag.`CONTENT`
  All text content is labeled with this tag.
  `static final HTML.Tag`
  HTML.Tag.`DD`
  Tag <dd>
  `static final HTML.Tag`
  HTML.Tag.`DFN`
  Tag <dfn>
  `static final HTML.Tag`
  HTML.Tag.`DIR`
  Tag <dir>
  `static final HTML.Tag`
  HTML.Tag.`DIV`
  Tag <div>
  `static final HTML.Tag`
  HTML.Tag.`DL`
  Tag <dl>
  `static final HTML.Tag`
  HTML.Tag.`DT`
  Tag <dt>
  `static final HTML.Tag`
  HTML.Tag.`EM`
  Tag <em>
  `static final HTML.Tag`
  HTML.Tag.`FONT`
  Tag <font>
  `static final HTML.Tag`
  HTML.Tag.`FORM`
  Tag <form>
  `static final HTML.Tag`
  HTML.Tag.`FRAME`
  Tag <frame>
  `static final HTML.Tag`
  HTML.Tag.`FRAMESET`
  Tag <frameset>
  `static final HTML.Tag`
  HTML.Tag.`H1`
  Tag <h1>
  `static final HTML.Tag`
  HTML.Tag.`H2`
  Tag <h2>
  `static final HTML.Tag`
  HTML.Tag.`H3`
  Tag <h3>
  `static final HTML.Tag`
  HTML.Tag.`H4`
  Tag <h4>
  `static final HTML.Tag`
  HTML.Tag.`H5`
  Tag <h5>
  `static final HTML.Tag`
  HTML.Tag.`H6`
  Tag <h6>
  `static final HTML.Tag`
  HTML.Tag.`HEAD`
  Tag <head>
  `static final HTML.Tag`
  HTML.Tag.`HR`
  Tag <hr>
  `static final HTML.Tag`
  HTML.Tag.`HTML`
  Tag <html>
  `static final HTML.Tag`
  HTML.Tag.`I`
  Tag <i>
  `static final HTML.Tag`
  HTML.Tag.`IMG`
  Tag <img>
  `static final HTML.Tag`
  HTML.Tag.`IMPLIED`
  All text content must be in a paragraph element.
  `static final HTML.Tag`
  HTML.Tag.`INPUT`
  Tag <input>
  `static final HTML.Tag`
  HTML.Tag.`ISINDEX`
  Tag <isindex>
  `static final HTML.Tag`
  HTML.Tag.`KBD`
  Tag <kbd>
  `static final HTML.Tag`
  HTML.Tag.`LI`
  Tag <li>
  `static final HTML.Tag`
  HTML.Tag.`LINK`
  Tag <link>
  `static final HTML.Tag`
  HTML.Tag.`MAP`
  Tag <map>
  `static final HTML.Tag`
  HTML.Tag.`MENU`
  Tag <menu>
  `static final HTML.Tag`
  HTML.Tag.`META`
  Tag <meta>
  `static final HTML.Tag`
  HTML.Tag.`NOFRAMES`
  Tag <noframes>
  `static final HTML.Tag`
  HTML.Tag.`OBJECT`
  Tag <object>
  `static final HTML.Tag`
  HTML.Tag.`OL`
  Tag <ol>
  `static final HTML.Tag`
  HTML.Tag.`OPTION`
  Tag <option>
  `static final HTML.Tag`
  HTML.Tag.`P`
  Tag <p>
  `static final HTML.Tag`
  HTML.Tag.`PARAM`
  Tag <param>
  `protected HTML.Tag`
  HTMLEditorKit.InsertHTMLTextAction.`parentTag`
  Tag to check for in the document.
  `static final HTML.Tag`
  HTML.Tag.`PRE`
  Tag <pre>
  `static final HTML.Tag`
  HTML.Tag.`S`
  Tag <s>
  `static final HTML.Tag`
  HTML.Tag.`SAMP`
  Tag <samp>
  `static final HTML.Tag`
  HTML.Tag.`SCRIPT`
  Tag <script>
  `static final HTML.Tag`
  HTML.Tag.`SELECT`
  Tag <select>
  `static final HTML.Tag`
  HTML.Tag.`SMALL`
  Tag <small>
  `static final HTML.Tag`
  HTML.Tag.`SPAN`
  Tag <span>
  `static final HTML.Tag`
  HTML.Tag.`STRIKE`
  Tag <strike>
  `static final HTML.Tag`
  HTML.Tag.`STRONG`
  Tag <strong>
  `static final HTML.Tag`
  HTML.Tag.`STYLE`
  Tag <style>
  `static final HTML.Tag`
  HTML.Tag.`SUB`
  Tag <sub>
  `static final HTML.Tag`
  HTML.Tag.`SUP`
  Tag <sup>
  `static final HTML.Tag`
  HTML.Tag.`TABLE`
  Tag <table>
  `static final HTML.Tag`
  HTML.Tag.`TD`
  Tag <td>
  `static final HTML.Tag`
  HTML.Tag.`TEXTAREA`
  Tag <textarea>
  `static final HTML.Tag`
  HTML.Tag.`TH`
  Tag <th>
  `static final HTML.Tag`
  HTML.Tag.`TITLE`
  Tag <title>
  `static final HTML.Tag`
  HTML.Tag.`TR`
  Tag <tr>
  `static final HTML.Tag`
  HTML.Tag.`TT`
  Tag <tt>
  `static final HTML.Tag`
  HTML.Tag.`U`
  Tag <u>
  `static final HTML.Tag`
  HTML.Tag.`UL`
  Tag <ul>
  `static final HTML.Tag`
  HTML.Tag.`VAR`
  Tag <var>
  Methods in javax.swing.text.html that return HTML.Tag
  Modifier and Type
  Method
  Description
  `static HTML.Tag[]`
  HTML.`getAllTags()`
  Returns the set of actual HTML tags that are recognized by the default HTML reader.
  `static HTML.Tag`
  HTML.`getTag(String tagName)`
  Fetches a tag constant for a well-known tag name (i.e. one of the tags in the set {A, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BIG, BLOCKQUOTE, BODY, BR, CAPTION, CENTER, CITE, CODE, DD, DFN, DIR, DIV, DL, DT, EM, FONT, FORM, FRAME, FRAMESET, H1, H2, H3, H4, H5, H6, HEAD, HR, HTML, I, IMG, INPUT, ISINDEX, KBD, LI, LINK, MAP, MENU, META, NOBR, NOFRAMES, OBJECT, OL, OPTION, P, PARAM, PRE, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, S, STRONG, STYLE, SUB, SUP, TABLE, TD, TEXTAREA, TH, TITLE, TR, TT, U, UL, VAR}.
  `abstract HTML.Tag`
  HTMLDocument.Iterator.`getTag()`
  Type of tag this iterator represents.
  Methods in javax.swing.text.html with parameters of type HTML.Tag
  Modifier and Type
  Method
  Description
  `protected void`
  HTMLDocument.HTMLReader.`addSpecialElement(HTML.Tag t, MutableAttributeSet a)`
  Adds content that is basically specified entirely in the attribute set.
  `protected void`
  HTMLDocument.HTMLReader.`blockClose(HTML.Tag t)`
  Adds an instruction to the parse buffer to close out a block element of the given type.
  `protected void`
  HTMLDocument.HTMLReader.`blockOpen(HTML.Tag t, MutableAttributeSet attr)`
  Adds an instruction to the parse buffer to create a block element with the given attributes.
  `protected int`
  HTMLEditorKit.HTMLTextAction.`elementCountToTag(HTMLDocument doc, int offset, HTML.Tag tag)`
  Returns number of elements, starting at the deepest leaf, needed to get to an element representing `tag`.
  `void`
  HTMLDocument.HTMLReader.TagAction.`end(HTML.Tag t)`
  Called when an end tag is seen for the type of tag this action was registered to.
  `protected Element`
  HTMLEditorKit.HTMLTextAction.`findElementMatchingTag(HTMLDocument doc, int offset, HTML.Tag tag)`
  Returns the deepest element at `offset` matching `tag`.
  `HTMLDocument.Iterator`
  HTMLDocument.`getIterator(HTML.Tag t)`
  Fetches an iterator for the specified HTML tag.
  `HTMLEditorKit.ParserCallback`
  HTMLDocument.`getReader(int pos, int popDepth, int pushDepth, HTML.Tag insertTag)`
  Returns the reader for the parser to use to load the document with HTML.
  `Style`
  StyleSheet.`getRule(HTML.Tag t, Element e)`
  Fetches the style to use to render the given type of HTML tag.
  `void`
  HTMLDocument.HTMLReader.`handleEndTag(HTML.Tag t, int pos)`
  Callback from the parser.
  `void`
  HTMLEditorKit.ParserCallback.`handleEndTag(HTML.Tag t, int pos)`
  Callback from the parser.
  `void`
  HTMLDocument.HTMLReader.`handleSimpleTag(HTML.Tag t, MutableAttributeSet a, int pos)`
  Callback from the parser.
  `void`
  HTMLEditorKit.ParserCallback.`handleSimpleTag(HTML.Tag t, MutableAttributeSet a, int pos)`
  Callback from the parser.
  `void`
  HTMLDocument.HTMLReader.`handleStartTag(HTML.Tag t, MutableAttributeSet a, int pos)`
  Callback from the parser.
  `void`
  HTMLEditorKit.ParserCallback.`handleStartTag(HTML.Tag t, MutableAttributeSet a, int pos)`
  Callback from the parser.
  `protected void`
  HTMLEditorKit.InsertHTMLTextAction.`insertAtBoundary(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag)`
  This is invoked when inserting at a boundary.
  `protected void`
  HTMLEditorKit.InsertHTMLTextAction.`insertAtBoundry(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag)`
  Deprecated.
  As of Java 2 platform v1.3, use insertAtBoundary
  `void`
  HTMLEditorKit.`insertHTML(HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag insertTag)`
  Inserts HTML into an existing document.
  `protected void`
  HTMLEditorKit.InsertHTMLTextAction.`insertHTML(JEditorPane editor, HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag addTag)`
  A cover for HTMLEditorKit.insertHTML.
  `protected boolean`
  HTMLWriter.`matchNameAttribute(AttributeSet attr, HTML.Tag tag)`
  Returns true if the StyleConstants.NameAttribute is equal to the tag that is passed in as a parameter.
  `protected void`
  HTMLDocument.HTMLReader.`registerTag(HTML.Tag t, HTMLDocument.HTMLReader.TagAction a)`
  Registers a handler for the given tag.
  `void`
  HTMLDocument.HTMLReader.TagAction.`start(HTML.Tag t, MutableAttributeSet a)`
  Called when a start tag is seen for the type of tag this action was registered to.
  Constructors in javax.swing.text.html with parameters of type HTML.Tag
  Modifier
  Constructor
  Description
  ``
  `HTMLReader(int offset, int popDepth, int pushDepth, HTML.Tag insertTag)`
  Constructs an HTMLReader.
  ``
  `InsertHTMLTextAction(String name, String html, HTML.Tag parentTag, HTML.Tag addTag)`
  Creates a new InsertHTMLTextAction.
  ``
  `InsertHTMLTextAction(String name, String html, HTML.Tag parentTag, HTML.Tag addTag, HTML.Tag alternateParentTag, HTML.Tag alternateAddTag)`
  Creates a new InsertHTMLTextAction.

- ## Uses of HTML.Tag in javax.swing.text.html.parser

  Methods in javax.swing.text.html.parser that return HTML.Tag
  Modifier and Type
  Method
  Description
  `HTML.Tag`
  TagElement.`getHTMLTag()`
  Returns the tag constant corresponding to the name of the `element`