|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.text.html.HTML
Constants used in the HTMLDocument. These
are basically tag and attribute definitions.
| Nested Class Summary | |
static class |
HTML.Attribute
Typesafe enumeration representing an HTML attribute. |
static class |
HTML.Tag
Typesafe enumeration for an HTML tag. |
static class |
HTML.UnknownTag
|
| Field Summary | |
private static Hashtable |
attHashtable
|
static String |
NULL_ATTRIBUTE_VALUE
|
private static Hashtable |
scMapping
Maps from StyleConstant key to HTML.Tag. |
private static Hashtable |
tagHashtable
|
| Constructor Summary | |
HTML()
|
|
| Method Summary | |
static HTML.Attribute[] |
getAllAttributeKeys()
Returns the set of HTML attributes recognized. |
static HTML.Tag[] |
getAllTags()
Returns the set of actual HTML tags that are recognized by the default HTML reader. |
static HTML.Attribute |
getAttributeKey(String attName)
Fetches an attribute constant for a well-known attribute name (i.e. one of the attributes in the set {FACE, COMMENT, SIZE, COLOR, CLEAR, BACKGROUND, BGCOLOR, TEXT, LINK, VLINK, ALINK, WIDTH, HEIGHT, ALIGN, NAME, HREF, REL, REV, TITLE, TARGET, SHAPE, COORDS, ISMAP, NOHREF, ALT, ID, SRC, HSPACE, VSPACE, USEMAP, LOWSRC, CODEBASE, CODE, ARCHIVE, VALUE, VALUETYPE, TYPE, CLASS, STYLE, LANG, DIR, DECLARE, CLASSID, DATA, CODETYPE, STANDBY, BORDER, SHAPES, NOSHADE, COMPACT, START, ACTION, METHOD, ENCTYPE, CHECKED, MAXLENGTH, MULTIPLE, SELECTED, ROWS, COLS, DUMMY, CELLSPACING, CELLPADDING, VALIGN, HALIGN, NOWRAP, ROWSPAN, COLSPAN, PROMPT, HTTPEQUIV, CONTENT, LANGUAGE, VERSION, N, FRAMEBORDER, MARGINWIDTH, MARGINHEIGHT, SCROLLING, NORESIZE, MEDIA, ENDTAG}). |
static int |
getIntegerAttributeValue(AttributeSet attr,
HTML.Attribute key,
int def)
Fetches an integer attribute value. |
static HTML.Tag |
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}. |
(package private) static HTML.Tag |
getTagForStyleConstantsKey(StyleConstants sc)
Returns the HTML Tag associated with the
StyleConstants key sc.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final Hashtable tagHashtable
private static final Hashtable scMapping
public static final String NULL_ATTRIBUTE_VALUE
private static final Hashtable attHashtable
| Constructor Detail |
public HTML()
| Method Detail |
public static HTML.Tag[] getAllTags()
public static HTML.Tag getTag(String tagName)
null will be returned.
tagName - the String name requested
tagName,
or null if not foundstatic HTML.Tag getTagForStyleConstantsKey(StyleConstants sc)
Tag associated with the
StyleConstants key sc.
If no matching Tag is found, returns
null.
sc - the StyleConstants key
sc, or
null if not found
public static int getIntegerAttributeValue(AttributeSet attr,
HTML.Attribute key,
int def)
attr - the set of attributes to use to try to fetch a valuekey - the key to use to fetch the valuedef - the default value to use if the attribute isn't
defined or there is an error converting to an integerpublic static HTML.Attribute[] getAllAttributeKeys()
public static HTML.Attribute getAttributeKey(String attName)
null will be returned.
attName - the String requested
Attribute corresponding to attName
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||