|
||||||||||
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.xml.lazydom.LazyElementNoNS | +--org.enhydra.xml.lazydom.html.LazyHTMLElement
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 FormInner classes inherited from class org.enhydra.apache.xerces.dom.ParentNode |
org.enhydra.apache.xerces.dom.ParentNode.UserDataRecord |
Fields inherited from class org.enhydra.apache.xerces.dom.ElementImpl |
attributes, name, serialVersionUID |
Fields inherited from class org.enhydra.apache.xerces.dom.ParentNode |
firstChild, fNodeListCache, ownerDocument |
Fields inherited from class org.enhydra.apache.xerces.dom.ChildNode |
nextSibling, previousSibling |
Fields inherited from class org.enhydra.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.enhydra.xml.lazydom.LazyNode |
DOCUMENT_NODE_ID, NULL_NODE_ID |
Fields inherited from interface org.w3c.dom.TypeInfo |
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION |
Constructor Summary | |
(package private) |
LazyHTMLElement(LazyHTMLDocument owner,
LazyElement template,
String tagName)
Constructor required owner document and element tag name. |
Method Summary | |
(package private) String |
capitalize(String value)
Convenience method used to capitalize a one-off attribute value before it is returned. |
String |
getAttribute(String attrName)
|
Attr |
getAttributeNode(String attrName)
|
Attr |
getAttributeNodeNS(String namespaceURI,
String localName)
|
String |
getAttributeNS(String namespaceURI,
String localName)
|
(package private) boolean |
getBinary(String name)
Convenience method used to translate an attribute value into a boolean value. |
(package private) String |
getCapitalized(String name)
Convenience method used to capitalize a one-off attribute value before it is returned. |
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()
|
(package private) int |
getInteger(String value)
Convenience method used to translate an attribute value into an integer value. |
String |
getLang()
|
String |
getTitle()
|
(package private) void |
setAttribute(String name,
boolean value)
Convenience method used to set a boolean attribute. |
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.ElementImpl |
getBaseURI, getDefaultAttributes, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, getTypeName, getTypeNamespace, getXercesAttribute, hasAttribute, hasAttributeNS, hasAttributes, isDerivedFrom, isEqualNode, moveSpecifiedAttributes, reconcileDefaultAttributes, rename, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData |
Methods inherited from class org.enhydra.apache.xerces.dom.ParentNode |
checkNormalizationAfterInsert, checkNormalizationAfterRemove, getChildNodesUnoptimized, getLength, getOwnerDocument, getTextContent, getTextContent, hasTextContent, internalInsertBefore, internalRemoveChild, item, lastChild, lastChild, ownerDocument, setTextContent, synchronizeChildren |
Methods inherited from class org.enhydra.apache.xerces.dom.ChildNode |
parentNode, previousSibling |
Methods inherited from class org.enhydra.apache.xerces.dom.NodeImpl |
addEventListener, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getElementAncestor, getFeature, getLocalName, getNamespaceURI, getNodeNumber, getNodeValue, getPrefix, 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, setPrefix, 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 |
LazyHTMLElement(LazyHTMLDocument owner, LazyElement template, String tagName)
owner
- The owner HTML documenttemplate
- If not null, then this template will be used to
initialize the Element.tagName
- 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
int getInteger(String value)
value
- The value of the attributeboolean getBinary(String name)
value
- The value of the attributevoid 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 LazyElementNoNS
org.enhydra.xml.lazydom.LazyElementNoNS
Element.getAttributeNode(java.lang.String)
public Attr getAttributeNodeNS(String namespaceURI, String localName)
getAttributeNodeNS
in interface Element
getAttributeNodeNS
in class LazyElementNoNS
org.enhydra.xml.lazydom.LazyElementNoNS
Element.getAttributeNodeNS(java.lang.String, java.lang.String)
public String getAttribute(String attrName)
getAttribute
in interface Element
getAttribute
in class LazyElementNoNS
org.enhydra.xml.lazydom.LazyElementNoNS
Element.getAttribute(java.lang.String)
public String getAttributeNS(String namespaceURI, String localName)
getAttributeNS
in interface Element
getAttributeNS
in class LazyElementNoNS
org.enhydra.xml.lazydom.LazyElementNoNS
Element.getAttributeNS(java.lang.String, java.lang.String)
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
String capitalize(String value)
value
- The value of the attributeString getCapitalized(String name)
name
- The name of the attributepublic HTMLFormElement getForm()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |