org.enhydra.xml.xhtml.dom.xerces
Class XHTMLIFrameElementImpl

java.lang.Object
  |
  +--org.apache.xerces.dom.NodeImpl
        |
        +--org.apache.xerces.dom.ChildNode
              |
              +--org.apache.xerces.dom.ParentNode
                    |
                    +--org.apache.xerces.dom.ElementImpl
                          |
                          +--org.apache.xerces.dom.ElementNSImpl
                                |
                                +--org.enhydra.xml.xhtml.dom.xerces.XHTMLElementImpl
                                      |
                                      +--org.enhydra.xml.xhtml.dom.xerces.XHTMLIFrameElementImpl
All Implemented Interfaces:
Cloneable, Element, ElementTraversal, EventTarget, HTMLElement, HTMLIFrameElement, Node, NodeList, Serializable, TypeInfo, XHTMLElement, XHTMLIFrameElement

public class XHTMLIFrameElementImpl
extends XHTMLElementImpl
implements XHTMLIFrameElement

See Also:
Serialized Form

Inner classes inherited from class org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ParentNode.UserDataRecord
 
Fields inherited from class org.apache.xerces.dom.ElementNSImpl
localName, namespaceURI, serialVersionUID, type, xmlURI
 
Fields inherited from class org.apache.xerces.dom.ElementImpl
attributes, name
 
Fields inherited from class org.apache.xerces.dom.ParentNode
firstChild, fNodeListCache, ownerDocument
 
Fields inherited from class org.apache.xerces.dom.ChildNode
nextSibling, previousSibling
 
Fields inherited from class org.apache.xerces.dom.NodeImpl
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Fields inherited from interface org.w3c.dom.TypeInfo
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION
 
Constructor Summary
XHTMLIFrameElementImpl(XHTMLDocumentBase owner, String namespaceURI, String tagName)
          Constructor requires owner document.
 
Method Summary
 String getAlign()
           
 Document getContentDocument()
          This was an HTML DOM Level 2 method that leaked its way into the JDK1.4+ API.
 String getFrameBorder()
           
 String getHeight()
           
 String getLongDesc()
           
 String getMarginHeight()
           
 String getMarginWidth()
           
 String getName()
           
 String getScrolling()
           
 String getSrc()
           
 String getWidth()
           
 void setAlign(String align)
           
 void setFrameBorder(String frameBorder)
           
 void setHeight(String height)
           
 void setLongDesc(String longDesc)
           
 void setMarginHeight(String marginHeight)
           
 void setMarginWidth(String marginWidth)
           
 void setName(String name)
           
 void setScrolling(String scrolling)
           
 void setSrc(String src)
           
 void setWidth(String width)
           
 
Methods inherited from class org.enhydra.xml.xhtml.dom.xerces.XHTMLElementImpl
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getBinary, getClassName, getDir, getElementsByTagName, getElementsByTagNameNS, getForm, getId, getInteger, getLang, getOnBlur, getOnClick, getOnDblClick, getOnFocus, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseDown, getOnMouseMove, getOnMouseOut, getOnMouseOver, getOnMouseUp, getStyle, getTitle, getXmlLang, setAttribute, setAttribute, setClassName, setDir, setId, setLang, setOnBlur, setOnClick, setOnDblClick, setOnFocus, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setStyle, setTitle, setXmlLang
 
Methods inherited from class org.apache.xerces.dom.ElementNSImpl
getLocalName, getNamespaceURI, getPrefix, getTypeName, getTypeNamespace, getXMLBaseAttribute, isDerivedFrom, rename, setPrefix, setType
 
Methods inherited from class org.apache.xerces.dom.ElementImpl
cloneNode, getAttributes, getBaseURI, getChildElementCount, getDefaultAttributes, getFirstElementChild, getLastElementChild, getNextElementSibling, getNodeName, getNodeType, getPreviousElementSibling, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttribute, hasAttributeNS, hasAttributes, isEqualNode, moveSpecifiedAttributes, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, rename, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData
 
Methods inherited from class org.apache.xerces.dom.ParentNode
checkNormalizationAfterInsert, checkNormalizationAfterRemove, getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, getTextContent, hasChildNodes, hasTextContent, insertBefore, internalInsertBefore, internalRemoveChild, item, lastChild, lastChild, ownerDocument, removeChild, replaceChild, setTextContent, synchronizeChildren
 
Methods inherited from class org.apache.xerces.dom.ChildNode
getNextSibling, getParentNode, getPreviousSibling, parentNode, previousSibling
 
Methods inherited from class org.apache.xerces.dom.NodeImpl
addEventListener, appendChild, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getElementAncestor, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, getUserDataRecord, hasStringValue, hasStringValue, internalIsIgnorableWhitespace, isDefaultNamespace, isFirstChild, isFirstChild, isIdAttribute, isIdAttribute, isIgnorableWhitespace, isNormalized, isNormalized, isOwned, isOwned, isReadOnly, isReadOnly, isSameNode, isSpecified, isSpecified, isSupported, lookupNamespacePrefix, lookupNamespaceURI, lookupPrefix, needsSyncChildren, needsSyncChildren, needsSyncData, needsSyncData, removeEventListener, setNodeValue, setUserData, setUserData, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.enhydra.xml.xhtml.dom.XHTMLIFrameElement
getStyle, setStyle
 
Methods inherited from interface org.enhydra.xml.xhtml.dom.XHTMLElement
getXmlLang, setXmlLang
 
Methods inherited from interface org.w3c.dom.html.HTMLElement
getClassName, getDir, getId, getLang, getTitle, setClassName, setDir, setId, setLang, setTitle
 
Methods inherited from interface org.w3c.dom.Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 

Constructor Detail

XHTMLIFrameElementImpl

public XHTMLIFrameElementImpl(XHTMLDocumentBase owner,
                              String namespaceURI,
                              String tagName)
Constructor requires owner document.
Parameters:
owner - The owner HTML document
Method Detail

getAlign

public String getAlign()
Specified by:
getAlign in interface HTMLIFrameElement

setAlign

public void setAlign(String align)
Specified by:
setAlign in interface HTMLIFrameElement

getFrameBorder

public String getFrameBorder()
Specified by:
getFrameBorder in interface HTMLIFrameElement

setFrameBorder

public void setFrameBorder(String frameBorder)
Specified by:
setFrameBorder in interface HTMLIFrameElement

getHeight

public String getHeight()
Specified by:
getHeight in interface HTMLIFrameElement

setHeight

public void setHeight(String height)
Specified by:
setHeight in interface HTMLIFrameElement

getLongDesc

public String getLongDesc()
Specified by:
getLongDesc in interface HTMLIFrameElement

setLongDesc

public void setLongDesc(String longDesc)
Specified by:
setLongDesc in interface HTMLIFrameElement

getMarginHeight

public String getMarginHeight()
Specified by:
getMarginHeight in interface HTMLIFrameElement

setMarginHeight

public void setMarginHeight(String marginHeight)
Specified by:
setMarginHeight in interface HTMLIFrameElement

getMarginWidth

public String getMarginWidth()
Specified by:
getMarginWidth in interface HTMLIFrameElement

setMarginWidth

public void setMarginWidth(String marginWidth)
Specified by:
setMarginWidth in interface HTMLIFrameElement

getName

public String getName()
Specified by:
getName in interface HTMLIFrameElement

setName

public void setName(String name)
Specified by:
setName in interface HTMLIFrameElement

getScrolling

public String getScrolling()
Specified by:
getScrolling in interface HTMLIFrameElement

setScrolling

public void setScrolling(String scrolling)
Specified by:
setScrolling in interface HTMLIFrameElement

getSrc

public String getSrc()
Specified by:
getSrc in interface HTMLIFrameElement

setSrc

public void setSrc(String src)
Specified by:
setSrc in interface HTMLIFrameElement

getWidth

public String getWidth()
Specified by:
getWidth in interface HTMLIFrameElement

setWidth

public void setWidth(String width)
Specified by:
setWidth in interface HTMLIFrameElement

getContentDocument

public Document getContentDocument()
This was an HTML DOM Level 2 method that leaked its way into the JDK1.4+ API. HTML DOM Level 2 is supposed to be implemented in the package org.w3c.dom.html2, not in the Level 1 package. We are forced to implement this method to build under JDK1.4+. However, all we do is return null.

Note: This had been implemented prior to XMLC 1.3.2, but the implementation was improper and simply threw an UnsupportedOperationException under JDK1.4+. And, if the Xerces xml-apis.jar was made an endorsed library, you'd get a NoSuchMethodError as it makes no mention of the method. As such, it's safe to say no one is using this method so changing the behavior shouldn't hurt anyone. The reasonable thing to do is just return null which is compatible with the JDK Javadoc: "The document this frame contains, if there is any and it is available, or null otherwise."

Returns:
always null, never contains a document
See Also:
HTMLIFrameElement#getContentDocument()


Copyright © 1999-2002 Mark Diekhans, enhydra.org. All Rights reserved.