|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.apache.xerces.dom.NodeImpl | +--org.enhydra.apache.xerces.dom.ChildNode | +--org.enhydra.apache.xerces.dom.ParentNode | +--org.enhydra.apache.xerces.dom.ElementImpl | +--org.enhydra.apache.xerces.dom.ElementNSImpl | +--org.enhydra.xml.xhtml.dom.xerces.XHTMLElementImpl
Implements an HTML-specific element, an Element
that
will only appear inside HTML documents. This element extends 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.
HTMLElement
, Serialized FormFields inherited from class org.enhydra.apache.xerces.dom.ElementNSImpl |
localName, namespaceURI, serialVersionUID, xmlURI |
Fields inherited from class org.enhydra.apache.xerces.dom.ElementImpl |
attributes, name |
Fields inherited from class org.enhydra.apache.xerces.dom.ParentNode |
fCachedChild, fCachedChildIndex, fCachedLength, firstChild, ownerDocument |
Fields inherited from class org.enhydra.apache.xerces.dom.ChildNode |
nextSibling, previousSibling |
Fields inherited from class org.enhydra.apache.xerces.dom.NodeImpl |
ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, IGNORABLEWS, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, UNNORMALIZED |
Constructor Summary | |
(package private) |
XHTMLElementImpl(XHTMLDocumentBase owner,
String namespaceURI,
String tagName)
Constructor required owner document and element tag name. |
Method Summary | |
String |
getAttribute(String attrName)
|
Attr |
getAttributeNode(String attrName)
|
Attr |
getAttributeNodeNS(String namespaceURI,
String localName)
|
String |
getAttributeNS(String namespaceURI,
String localName)
|
protected boolean |
getBooleanAttribute(String name)
|
String |
getClassName()
|
String |
getDir()
|
NodeList |
getElementsByTagName(String tagName)
|
NodeList |
getElementsByTagNameNS(String namespaceURI,
String localName)
|
HTMLFormElement |
getForm()
Convenience method returns the form in which this form element is contained. |
String |
getId()
|
protected int |
getIntAttribute(String attr)
|
protected int |
getIntAttribute(String attr,
int defaultValue)
|
String |
getLang()
|
String |
getTitle()
|
(package private) void |
setAttribute(String name,
boolean value)
Convenience method used to set a boolean attribute. |
protected void |
setAttribute(String attr,
int value)
|
void |
setClassName(String className)
|
void |
setDir(String dir)
|
void |
setId(String id)
|
void |
setLang(String lang)
|
void |
setTitle(String title)
|
Methods inherited from class org.enhydra.apache.xerces.dom.ElementNSImpl |
getLocalName, getNamespaceURI, getPrefix, setPrefix |
Methods inherited from class org.enhydra.apache.xerces.dom.ElementImpl |
cloneNode, getAttributes, getDefaultAttributes, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, hasAttributes, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, synchronizeData |
Methods inherited from class org.enhydra.apache.xerces.dom.ParentNode |
checkNormalizationAfterInsert, checkNormalizationAfterRemove, getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, hasChildNodes, insertBefore, internalInsertBefore, internalRemoveChild, item, lastChild, lastChild, ownerDocument, removeChild, replaceChild, synchronizeChildren |
Methods inherited from class org.enhydra.apache.xerces.dom.ChildNode |
getNextSibling, getParentNode, getPreviousSibling, parentNode, previousSibling |
Methods inherited from class org.enhydra.apache.xerces.dom.NodeImpl |
addEventListener, appendChild, changed, changes, compareDocumentPosition, dispatchEvent, getBaseURI, getFeature, getNodeValue, getReadOnly, getTextContent, getUserData, getUserData, hasStringValue, hasStringValue, internalIsIgnorableWhitespace, isDefaultNamespace, isEqualNode, isFirstChild, isFirstChild, isIgnorableWhitespace, isNormalized, isNormalized, isOwned, isOwned, isReadOnly, isReadOnly, isSameNode, isSpecified, isSpecified, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, needsSyncChildren, needsSyncData, needsSyncData, removeEventListener, setNodeValue, setTextContent, setUserData, setUserData, toString |
Methods inherited from class java.lang.Object |
|
Methods inherited from interface org.w3c.dom.Element |
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 |
XHTMLElementImpl(XHTMLDocumentBase owner, String namespaceURI, String tagName)
owner
- The owner HTML documenttagName
- The element's tag nameMethod Detail |
public String getId()
getId
in interface HTMLElement
public void setId(String id)
setId
in interface HTMLElement
public String getTitle()
getTitle
in interface HTMLElement
public void setTitle(String title)
setTitle
in interface HTMLElement
public String getLang()
getLang
in interface HTMLElement
public void setLang(String lang)
setLang
in interface HTMLElement
public String getDir()
getDir
in interface HTMLElement
public void setDir(String dir)
setDir
in interface HTMLElement
public String getClassName()
getClassName
in interface HTMLElement
public void setClassName(String className)
setClassName
in interface HTMLElement
protected final int getIntAttribute(String attr, int defaultValue)
protected final int getIntAttribute(String attr)
protected final void setAttribute(String attr, int value)
protected final boolean getBooleanAttribute(String name)
void setAttribute(String name, boolean value)
name
- The name of the attributevalue
- The value of the attributepublic Attr getAttributeNode(String attrName)
getAttributeNode
in interface Element
getAttributeNode
in class org.enhydra.apache.xerces.dom.ElementImpl
public Attr getAttributeNodeNS(String namespaceURI, String localName)
getAttributeNodeNS
in interface Element
getAttributeNodeNS
in class org.enhydra.apache.xerces.dom.ElementImpl
public String getAttribute(String attrName)
getAttribute
in interface Element
getAttribute
in class org.enhydra.apache.xerces.dom.ElementImpl
public String getAttributeNS(String namespaceURI, String localName)
getAttributeNS
in interface Element
getAttributeNS
in class org.enhydra.apache.xerces.dom.ElementImpl
public final NodeList getElementsByTagName(String tagName)
getElementsByTagName
in interface Element
getElementsByTagName
in class org.enhydra.apache.xerces.dom.ElementImpl
public final NodeList getElementsByTagNameNS(String namespaceURI, String localName)
getElementsByTagNameNS
in interface Element
getElementsByTagNameNS
in class org.enhydra.apache.xerces.dom.ElementImpl
public HTMLFormElement getForm()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |