|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | 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.
Inner 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()
This is the set of html attributes recognized. |
static HTML.Tag[] |
getAllTags()
This is the set of actual html tags that are known about the the default html reader. |
static HTML.Attribute |
getAttributeKey(String attName)
Fetch an attribute constant for a well-known attribute name (i.e. |
static int |
getIntegerAttributeValue(AttributeSet attr,
HTML.Attribute key,
int def)
Fetch an integer attribute value. |
static HTML.Tag |
getTag(String tagName)
Fetch 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)
allTags
). If the given
name does not represent one of the well-known tags, then
null will be returned.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 value.def
- the default value to use if the attribute isn't
defined or there is an error converting to an integer.public static HTML.Attribute[] getAllAttributeKeys()
public static HTML.Attribute getAttributeKey(String attName)
allAttributes
).
If the given name does not represent one of the well-known attributes,
then null will be returned.
|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.