public class AnnotationTags extends HTML.Tag
Modifier and Type | Field and Description |
---|---|
static AnnotationTags |
ANNOTATION
Tag which is used to model an annotation.
|
static AnnotationTags |
BASETEXT
A tag which contains the annotated text.
|
static AnnotationTags |
READING
A tag which contains the reading annotation.
|
static AnnotationTags |
READING_BASETEXT
A tag which contains a word fragment with a reading annotation.
|
static AnnotationTags |
TRANSLATION
A tag which contains the translation of the annotated text.
|
static AnnotationTags |
WORD
A tag which contains the annotated word with reading annotations.
|
A, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BIG, BLOCKQUOTE, BODY, BR, CAPTION, CENTER, CITE, CODE, COMMENT, CONTENT, DD, DFN, DIR, DIV, DL, DT, EM, FONT, FORM, FRAME, FRAMESET, H1, H2, H3, H4, H5, H6, HEAD, HR, HTML, I, IMG, IMPLIED, 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
Modifier | Constructor and Description |
---|---|
protected |
AnnotationTags(String id,
boolean causesBreak,
boolean isBlock) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Tests if the object is equal to this tag.
|
static HTML.Tag |
getAnnotationTagEqualTo(HTML.Tag htmlTag)
Returns the unique instance of the annotation tag which is equal to the HTML tag.
|
static HTML.Tag |
getAnnotationTagEqualTo(String htmlTag) |
String |
getId()
Returns the id of this tag.
|
breaksFlow, isBlock, isPreformatted, toString
public static final AnnotationTags ANNOTATION
public static final AnnotationTags WORD
public static final AnnotationTags READING_BASETEXT
public static final AnnotationTags READING
public static final AnnotationTags BASETEXT
public static final AnnotationTags TRANSLATION
protected AnnotationTags(String id, boolean causesBreak, boolean isBlock)
public String getId()
public boolean equals(Object o)
HTML.Tag
and has the same string representation (this is equivalent to having the same id).public static HTML.Tag getAnnotationTagEqualTo(HTML.Tag htmlTag)
getTag
in class
javax.swing.text.html.HTML
cannot be extended for the annotation tags.
Some classes, like DocumentParser
in javax.swing.text.html.parser
will create instances of HTML.UnknownTag
for all tags not in the set.
This method can be used to replace such a tag with the approriate AnnotationTag
.
If the tag is not equal to one of the annotation tags, it will be returned unchanged.htmlTag
- The HTML tag for which the equivalent annotation tag should be returned.htmlTag
, or the
htmlTag
itself if it is not an annotation tag.Copyright © 2001-2013 the JGloss developers. All Rights Reserved.