public class HTMLElementImpl extends ElementImpl implements org.w3c.dom.html.HTMLElement
ALLOW_KEYBOARD_INPUT
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
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
Modifier and Type | Method and Description |
---|---|
Object |
call(String methodName,
Object... args)
Calls a JavaScript method.
|
void |
click() |
boolean |
equals(Object other) |
Object |
eval(String s)
Evaluates a JavaScript expression.
|
String |
getAccessKey() |
org.w3c.dom.html.HTMLCollection |
getChildren() |
String |
getContentEditable() |
String |
getDir() |
boolean |
getDraggable() |
boolean |
getHidden() |
String |
getId() |
String |
getInnerText() |
boolean |
getIsContentEditable() |
String |
getLang() |
Object |
getMember(String name)
Retrieves a named member of a JavaScript object.
|
String |
getOuterText() |
Object |
getSlot(int index)
Retrieves an indexed member of a JavaScript object.
|
boolean |
getSpellcheck() |
int |
getTabIndex() |
String |
getTitle() |
String |
getTitleDisplayString() |
boolean |
getTranslate() |
String |
getWebkitdropzone() |
int |
hashCode() |
Element |
insertAdjacentElement(String where,
Element element) |
void |
insertAdjacentHTML(String where,
String html) |
void |
insertAdjacentText(String where,
String text) |
void |
removeMember(String name)
Removes a named member of a JavaScript object.
|
void |
setAccessKey(String value) |
void |
setContentEditable(String value) |
void |
setDir(String value) |
void |
setDraggable(boolean value) |
void |
setHidden(boolean value) |
void |
setId(String value) |
void |
setInnerText(String value) |
void |
setLang(String value) |
void |
setMember(String name,
Object value)
Sets a named member of a JavaScript object.
|
void |
setOuterText(String value) |
void |
setSlot(int index,
Object value)
Sets an indexed member of a JavaScript object.
|
void |
setSpellcheck(boolean value) |
void |
setTabIndex(int value) |
void |
setTitle(String value) |
void |
setTranslate(boolean value) |
void |
setWebkitdropzone(String value) |
String |
toString() |
blur, closest, focus, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getChildElementCount, getClassName, getClientHeight, getClientLeft, getClientTop, getClientWidth, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getInnerHTML, getLastElementChild, getNextElementSibling, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getOnabort, getOnanimationend, getOnanimationiteration, getOnanimationstart, getOnbeforecopy, getOnbeforecut, getOnbeforeload, getOnbeforepaste, getOnblur, getOncanplay, getOncanplaythrough, getOnchange, getOnclick, getOncontextmenu, getOncopy, getOncut, getOndblclick, getOndrag, getOndragend, getOndragenter, getOndragleave, getOndragover, getOndragstart, getOndrop, getOndurationchange, getOnemptied, getOnended, getOnerror, getOnfocus, getOnfocusin, getOnfocusout, getOninput, getOninvalid, getOnkeydown, getOnkeypress, getOnkeyup, getOnload, getOnloadeddata, getOnloadedmetadata, getOnloadstart, getOnmousedown, getOnmouseenter, getOnmouseleave, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnmousewheel, getOnpaste, getOnpause, getOnplay, getOnplaying, getOnprogress, getOnratechange, getOnreset, getOnresize, getOnscroll, getOnsearch, getOnseeked, getOnseeking, getOnselect, getOnselectstart, getOnstalled, getOnsubmit, getOnsuspend, getOntimeupdate, getOntransitionend, getOnvolumechange, getOnwaiting, getOnwebkitanimationend, getOnwebkitanimationiteration, getOnwebkitanimationstart, getOnwebkittransitionend, getOnwheel, getOuterHTML, getPreviousElementSibling, getSchemaTypeInfo, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getStyle, getTagName, hasAttribute, hasAttributeNS, hasAttributes, matches, querySelector, querySelectorAll, remove, removeAttribute, removeAttributeNode, removeAttributeNS, scrollByLines, scrollByPages, scrollIntoView, scrollIntoViewIfNeeded, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setClassName, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setInnerHTML, setOnabort, setOnanimationend, setOnanimationiteration, setOnanimationstart, setOnbeforecopy, setOnbeforecut, setOnbeforeload, setOnbeforepaste, setOnblur, setOncanplay, setOncanplaythrough, setOnchange, setOnclick, setOncontextmenu, setOncopy, setOncut, setOndblclick, setOndrag, setOndragend, setOndragenter, setOndragleave, setOndragover, setOndragstart, setOndrop, setOndurationchange, setOnemptied, setOnended, setOnerror, setOnfocus, setOnfocusin, setOnfocusout, setOninput, setOninvalid, setOnkeydown, setOnkeypress, setOnkeyup, setOnload, setOnloadeddata, setOnloadedmetadata, setOnloadstart, setOnmousedown, setOnmouseenter, setOnmouseleave, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnmousewheel, setOnpaste, setOnpause, setOnplay, setOnplaying, setOnprogress, setOnratechange, setOnreset, setOnresize, setOnscroll, setOnsearch, setOnseeked, setOnseeking, setOnselect, setOnselectstart, setOnstalled, setOnsubmit, setOnsuspend, setOntimeupdate, setOntransitionend, setOnvolumechange, setOnwaiting, setOnwebkitanimationend, setOnwebkitanimationiteration, setOnwebkitanimationstart, setOnwebkittransitionend, setOnwheel, setOuterHTML, setScrollLeft, setScrollTop, webkitMatchesSelector, webkitRequestFullscreen, webkitRequestFullScreen
addEventListener, appendChild, cloneNode, compareDocumentPosition, contains, dispatchEvent, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, removeEventListener, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getClassName, setClassName
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
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
public String getId()
getId
in interface org.w3c.dom.html.HTMLElement
getId
in class ElementImpl
public void setId(String value)
setId
in interface org.w3c.dom.html.HTMLElement
setId
in class ElementImpl
public String getTitle()
getTitle
in interface org.w3c.dom.html.HTMLElement
public void setTitle(String value)
setTitle
in interface org.w3c.dom.html.HTMLElement
public String getLang()
getLang
in interface org.w3c.dom.html.HTMLElement
public void setLang(String value)
setLang
in interface org.w3c.dom.html.HTMLElement
public boolean getTranslate()
public void setTranslate(boolean value)
public String getDir()
getDir
in interface org.w3c.dom.html.HTMLElement
public void setDir(String value)
setDir
in interface org.w3c.dom.html.HTMLElement
public int getTabIndex()
public void setTabIndex(int value)
public boolean getDraggable()
public void setDraggable(boolean value)
public String getWebkitdropzone()
public void setWebkitdropzone(String value)
public boolean getHidden()
public void setHidden(boolean value)
public String getAccessKey()
public void setAccessKey(String value)
public String getInnerText()
public void setInnerText(String value) throws DOMException
DOMException
public String getOuterText()
public void setOuterText(String value) throws DOMException
DOMException
public org.w3c.dom.html.HTMLCollection getChildren()
getChildren
in class ElementImpl
public String getContentEditable()
public void setContentEditable(String value) throws DOMException
DOMException
public boolean getIsContentEditable()
public boolean getSpellcheck()
public void setSpellcheck(boolean value)
public String getTitleDisplayString()
public Element insertAdjacentElement(String where, Element element) throws DOMException
DOMException
public void insertAdjacentHTML(String where, String html) throws DOMException
DOMException
public void insertAdjacentText(String where, String text) throws DOMException
DOMException
public void click()
public Object eval(String s) throws JSException
JSObject
Evaluates a JavaScript expression. The expression is a string of JavaScript source code which will be evaluated in the context given by "this".
eval
in class JSObject
s
- The JavaScript expression.JSException
public Object getMember(String name)
JSObject
Retrieves a named member of a JavaScript object. Equivalent to "this.name" in JavaScript.
public void setMember(String name, Object value) throws JSException
JSObject
Sets a named member of a JavaScript object. Equivalent to "this.name = value" in JavaScript.
setMember
in class JSObject
name
- The name of the JavaScript property to be accessed.value
- The value of the propery.JSException
public void removeMember(String name) throws JSException
JSObject
Removes a named member of a JavaScript object. Equivalent to "delete this.name" in JavaScript.
removeMember
in class JSObject
name
- The name of the JavaScript property to be removed.JSException
public Object getSlot(int index) throws JSException
JSObject
Retrieves an indexed member of a JavaScript object. Equivalent to "this[index]" in JavaScript.
getSlot
in class JSObject
index
- The index of the array to be accessed.JSException
public void setSlot(int index, Object value) throws JSException
JSObject
Sets an indexed member of a JavaScript object. Equivalent to "this[index] = value" in JavaScript.
setSlot
in class JSObject
index
- The index of the array to be accessed.JSException
public Object call(String methodName, Object... args) throws JSException
JSObject
Calls a JavaScript method. Equivalent to "this.methodName(args[0], args[1], ...)" in JavaScript.
call
in class JSObject
methodName
- The name of the JavaScript method to be invoked.args
- the Java objects passed as arguments to the method.JSException
Copyright © 2020. All rights reserved.