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

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.XHTMLFrameElementImpl
All Implemented Interfaces:
Cloneable, Element, ElementTraversal, EventTarget, HTMLElement, HTMLFrameElement, Node, NodeList, Serializable, TypeInfo, XHTMLElement, XHTMLFrameElement

public class XHTMLFrameElementImpl
extends XHTMLElementImpl
implements XHTMLFrameElement

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
XHTMLFrameElementImpl(XHTMLDocumentBase owner, String namespaceURI, String tagName)
          Constructor requires owner document.
 
Method Summary
 Document getContentDocument()
          This was an HTML DOM Level 2 method that leaked its way into the JDK1.4+ API.
 String getFrameBorder()
           
 String getLongDesc()
           
 String getMarginHeight()
           
 String getMarginWidth()
           
 String getName()
           
 boolean getNoResize()
           
 String getScrolling()
           
 String getSrc()
           
 void setFrameBorder(String frameBorder)
           
 void setLongDesc(String longDesc)
           
 void setMarginHeight(String marginHeight)
           
 void setMarginWidth(String marginWidth)
           
 void setName(String name)
           
 void setNoResize(boolean noResize)
           
 void setScrolling(String scrolling)
           
 void setSrc(String src)
           
 
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.XHTMLFrameElement
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

XHTMLFrameElementImpl

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

getFrameBorder

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

setFrameBorder

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

getLongDesc

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

setLongDesc

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

getMarginHeight

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

setMarginHeight

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

getMarginWidth

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

setMarginWidth

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

getName

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

setName

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

getNoResize

public boolean getNoResize()
Specified by:
getNoResize in interface HTMLFrameElement

setNoResize

public void setNoResize(boolean noResize)
Specified by:
setNoResize in interface HTMLFrameElement

getScrolling

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

setScrolling

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

getSrc

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

setSrc

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

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:
HTMLFrameElement#getContentDocument()


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