Class TextViewHTMLElement
All Packages Class Hierarchy This Package Previous Next Index
Class TextViewHTMLElement *Beta API*
public abstract class netscape.application.TextViewHTMLElement
extends java.lang.Object
{
/* Constructors
*/
public TextViewHTMLElement();
/* Methods
*/
public Font fontFromAttributes(Hashtable, TextView);
public Hashtable hashtableForHTMLAttributes(String);
public abstract String string(Hashtable);
}
This abstract class describes an HTML element.
It also provides some general conveniences to produce some strings
and attributes for TextView.
You never subclass TextViewHTMLElement directly. You subclass
TextViewHTMLString, TextViewHTMLMarker or TextViewHTMLContainer.
Constructors
TextViewHTMLElement
public TextViewHTMLElement()
Methods
hashtableForHTMLAttributes
public Hashtable hashtableForHTMLAttributes(String attr)
- Convenience to convert an attribute string to an attribute Hashtable
return null if the string is empty or does not contain
HTML attributes syntax.
fontFromAttributes
public Font fontFromAttributes(Hashtable attr,
TextView textView)
- Convenience to extract a font from a TextView attribute dictionary.
If the dictionary contains a font, this font will be returned. Otherwise,
this method will try the TextView's default font. If no font is found,
return Font.defaultFont()
string
public abstract String string(Hashtable context)
- Return it's string according to a context
All Packages Class Hierarchy This Package Previous Next Index
Copyright © 1997 Netscape Communications Corporation. All rights reserved
Please send any comments or corrections to ifcfeedback@netscape.com
HTML generated on 21 Apr 1997