| org.ozoneDB.xml.dom.NodeImpl org.ozoneDB.xml.dom.ElementImpl org.ozoneDB.xml.dom.html.HTMLElementImpl
All known Subclasses: org.ozoneDB.xml.dom.html.HTMLUListElementImpl, org.ozoneDB.xml.dom.html.HTMLInputElementImpl, org.ozoneDB.xml.dom.html.HTMLSelectElementImpl, org.ozoneDB.xml.dom.html.HTMLLIElementImpl, org.ozoneDB.xml.dom.html.HTMLOptGroupElementImpl, org.ozoneDB.xml.dom.html.HTMLButtonElementImpl, org.ozoneDB.xml.dom.html.HTMLFrameSetElementImpl, org.ozoneDB.xml.dom.html.HTMLMetaElementImpl, org.ozoneDB.xml.dom.html.HTMLDivElementImpl, org.ozoneDB.xml.dom.html.HTMLDirectoryElementImpl, org.ozoneDB.xml.dom.html.HTMLQuoteElementImpl, org.ozoneDB.xml.dom.html.HTMLMapElementImpl, org.ozoneDB.xml.dom.html.HTMLPreElementImpl, org.ozoneDB.xml.dom.html.HTMLStyleElementImpl, org.ozoneDB.xml.dom.html.HTMLTextAreaElementImpl, org.ozoneDB.xml.dom.html.HTMLFieldSetElementImpl, org.ozoneDB.xml.dom.html.HTMLFontElementImpl, org.ozoneDB.xml.dom.html.HTMLParamElementImpl, org.ozoneDB.xml.dom.html.HTMLIFrameElementImpl, org.ozoneDB.xml.dom.html.HTMLImageElementImpl, org.ozoneDB.xml.dom.html.HTMLTableCaptionElementImpl, org.ozoneDB.xml.dom.html.HTMLLabelElementImpl, org.ozoneDB.xml.dom.html.HTMLAreaElementImpl, org.ozoneDB.xml.dom.html.HTMLAppletElementImpl, org.ozoneDB.xml.dom.html.HTMLFrameElementImpl, org.ozoneDB.xml.dom.html.HTMLTableRowElementImpl, org.ozoneDB.xml.dom.html.HTMLObjectElementImpl, org.ozoneDB.xml.dom.html.HTMLBaseFontElementImpl, org.ozoneDB.xml.dom.html.HTMLTableColElementImpl, org.ozoneDB.xml.dom.html.HTMLTitleElementImpl, org.ozoneDB.xml.dom.html.HTMLAnchorElementImpl, org.ozoneDB.xml.dom.html.HTMLFormElementImpl, org.ozoneDB.xml.dom.html.HTMLMenuElementImpl, org.ozoneDB.xml.dom.html.HTMLHeadElementImpl, org.ozoneDB.xml.dom.html.HTMLBRElementImpl, org.ozoneDB.xml.dom.html.HTMLModElementImpl, org.ozoneDB.xml.dom.html.HTMLBaseElementImpl, org.ozoneDB.xml.dom.html.HTMLHtmlElementImpl, org.ozoneDB.xml.dom.html.HTMLBodyElementImpl, org.ozoneDB.xml.dom.html.HTMLLegendElementImpl, org.ozoneDB.xml.dom.html.HTMLHeadingElementImpl, org.ozoneDB.xml.dom.html.HTMLScriptElementImpl, org.ozoneDB.xml.dom.html.HTMLBlockquoteElementImpl, org.ozoneDB.xml.dom.html.HTMLTableElementImpl, org.ozoneDB.xml.dom.html.HTMLOptionElementImpl, org.ozoneDB.xml.dom.html.HTMLDListElementImpl, org.ozoneDB.xml.dom.html.HTMLTableCellElementImpl, org.ozoneDB.xml.dom.html.HTMLTableSectionElementImpl, org.ozoneDB.xml.dom.html.HTMLOListElementImpl, org.ozoneDB.xml.dom.html.HTMLParagraphElementImpl, org.ozoneDB.xml.dom.html.HTMLLinkElementImpl, org.ozoneDB.xml.dom.html.HTMLHRElementImpl, org.ozoneDB.xml.dom.html.HTMLIsIndexElementImpl,
HTMLElementImpl | public class HTMLElementImpl extends ElementImpl implements HTMLElement(Code) | | Implements an HTML-specific element, an
org.w3c.dom.Element that
will only appear inside HTML documents. This element extends
org.openxml.dom.ElementImpl by adding methods for directly manipulating
HTML-specific attributes. All HTML elements gain access to the
id , title , lang , dir
and class attributes. Other elements add their own specific
attributes.
Note that some support is provided by
org.openxml.dom.NodeImpl directly: translating all tag names to upper case and all attribute names
to lower case.
version: $Revision: 1.1 $ $Date: 2001/12/18 11:03:24 $ author: Assaf Arkin See Also: org.w3c.dom.html.HTMLElement See Also: org.openxml.dom.ElementImpl |
HTMLElementImpl | HTMLElementImpl(HTMLDocumentImpl owner, String tagName)(Code) | | Constructor required owner document and element tag name. Will be called
by the constructor of specific element types but with a known tag name.
Assures that the owner document is an HTML element.
Parameters: owner - The owner HTML document Parameters: tagName - The element's tag name |
capitalize | String capitalize(String value)(Code) | | Convenience method used to capitalize a one-off attribute value before it
is returned. For example, the align values "LEFT" and "left" will both
return as "Left".
Parameters: value - The value of the attribute The capitalized value |
getCapitalized | String getCapitalized(String name)(Code) | | Convenience method used to capitalize a one-off attribute value before it
is returned. For example, the align values "LEFT" and "left" will both
return as "Left".
Parameters: name - The name of the attribute The capitalized value |
getForm | public HTMLFormElement getForm()(Code) | | Convenience method returns the form in which this form element is contained.
This method is exposed for form elements through the DOM API, but other
elements have no access to it through the API.
|
setAttribute | void setAttribute(String name, boolean value)(Code) | | Convenience method used to set a boolean attribute. If the value is true,
the attribute is set to an empty string. If the value is false, the attribute
is removed. HTML 4.0 understands empty strings as set attributes.
Parameters: name - The name of the attribute Parameters: value - The value of the attribute |
setClassName | public void setClassName(String className)(Code) | | |
toBoolean | boolean toBoolean(String name)(Code) | | Convenience method used to translate an attribute value into a boolean
value. If the attribute has an associated value (even an empty string),
it is set and true is returned. If the attribute does not exist, false
is returend.
Parameters: value - The value of the attribute True or false depending on whether the attribute has been set |
toInteger | int toInteger(String value)(Code) | | Convenience method used to translate an attribute value into an integer
value. Returns the integer value or zero if the attribute is not a
valid numeric string.
Parameters: value - The value of the attribute The integer value, or zero if not a valid numeric string |
Methods inherited from org.ozoneDB.xml.dom.ElementImpl | final public synchronized AttrProxy appendAttr(AttrProxy newAttr)(Code)(Java Doc) final public Object clone()(Code)(Java Doc) public synchronized void cloneInto(NodeProxy into, boolean deep)(Code)(Java Doc) final public Node cloneNode(boolean deep)(Code)(Java Doc) final public Enumeration elements()(Code)(Java Doc) public synchronized boolean equals(Object other)(Code)(Java Doc) final public synchronized String getAttribute(String name)(Code)(Java Doc) public java.lang.String getAttributeNS(java.lang.String namespaceURI, java.lang.String localName)(Code)(Java Doc) final public Attr getAttributeNode(String name)(Code)(Java Doc) public Attr getAttributeNodeNS(java.lang.String namespaceURI, java.lang.String localName)(Code)(Java Doc) final public NamedNodeMap getAttributes()(Code)(Java Doc) final public synchronized NodeList getElementsByTagName(String tagName)(Code)(Java Doc) public NodeList getElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)(Code)(Java Doc) public int getLength()(Code)(Java Doc) final public synchronized Attr getNamedAttr(String name)(Code)(Java Doc) final public synchronized Node getNamedItem(String name)(Code)(Java Doc) public Node getNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)(Code)(Java Doc) final public short getNodeType()(Code)(Java Doc) final public String getTagName()(Code)(Java Doc) public boolean hasAttribute(String name)(Code)(Java Doc) public boolean hasAttributeNS(String namespaceURI, String localname)(Code)(Java Doc) public boolean hasAttributes()(Code)(Java Doc) public void init(NodeProxy owner, Dictionary dictionary)(Code)(Java Doc) final public synchronized Node item(int index)(Code)(Java Doc) final public synchronized void normalize()(Code)(Java Doc) public void onDelete() throws Exception(Code)(Java Doc) public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException(Code)(Java Doc) final public synchronized AttrProxy removeAttr(AttrProxy oldAttr) throws DOMException(Code)(Java Doc) final public synchronized void removeAttribute(String name)(Code)(Java Doc) public void removeAttributeNS(java.lang.String namespaceURI, java.lang.String localName) throws DOMException(Code)(Java Doc) final public synchronized Attr removeAttributeNode(Attr oldAttr)(Code)(Java Doc) final public synchronized Node removeNamedItem(String name) throws DOMException(Code)(Java Doc) public Node removeNamedItemNS(java.lang.String namespaceURI, java.lang.String localName) throws DOMException(Code)(Java Doc) public void setAttrCount(int count)(Code)(Java Doc) final public synchronized void setAttribute(String name, String value) throws DOMException(Code)(Java Doc) public void setAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String value) throws DOMException(Code)(Java Doc) final public synchronized Attr setAttributeNode(Attr newAttr) throws DOMException(Code)(Java Doc) public Attr setAttributeNodeNS(Attr newAttr) throws DOMException(Code)(Java Doc) public void setFirstAttr(Attr attribute)(Code)(Java Doc) public void setLastAttr(Attr attribute)(Code)(Java Doc) final public Node setNamedItem(Node arg) throws DOMException(Code)(Java Doc) public Node setNamedItemNS(Node arg) throws DOMException(Code)(Java Doc) final public void setNodeValue(String value)(Code)(Java Doc) protected boolean supportsChildern()(Code)(Java Doc) public String toString()(Code)(Java Doc) public void writeExternal(ObjectOutput out) throws IOException(Code)(Java Doc)
|
|
|