|
JavaTM 2 Platform Std. Ed. v1.4.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.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 | |
static String |
NULL_ATTRIBUTE_VALUE
|
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. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String NULL_ATTRIBUTE_VALUE
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 foundpublic 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
|
JavaTM 2 Platform Std. Ed. v1.4.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.