public class HTMLAnchorElement extends HTMLElement
HTMLElement.ProxyDomNode
org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator
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
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
NOT_FOUND
Constructor and Description |
---|
HTMLAnchorElement() |
Modifier and Type | Method and Description |
---|---|
void |
focus()
Sets the focus to this element.
|
String |
getCharset()
Returns the
charset attribute. |
String |
getCoords()
Returns the
coords attribute. |
Object |
getDefaultValue(Class<?> hint)
Calls for instance for implicit conversion to string.
|
String |
getDownload()
Returns the
download attribute. |
String |
getHash()
Returns the hash portion of the link's URL (the portion following the '#', including the '#').
|
String |
getHost()
Returns the host portion of the link's URL (the '[hostname]:[port]' portion).
|
String |
getHostname()
Returns the hostname portion of the link's URL.
|
String |
getHref()
Returns the value of this link's
href property. |
String |
getHreflang()
Returns the
hreflang attribute. |
String |
getName()
Returns the value of the name property of this link.
|
String |
getOrigin()
Returns the
origin attribute. |
String |
getPassword()
Returns the
password attribute. |
String |
getPathname()
Returns the pathname portion of the link's URL.
|
String |
getPing()
Returns the
ping attribute. |
String |
getPort()
Returns the port portion of the link's URL.
|
String |
getProtocol()
Returns the protocol portion of the link's URL, including the trailing ':'.
|
String |
getReferrerPolicy()
Returns the value of the rev property.
|
String |
getRel()
Returns the value of the rel property.
|
DOMTokenList |
getRelList()
Returns the
relList attribute. |
String |
getRev()
Returns the value of the rev property.
|
String |
getSearch()
Returns the search portion of the link's URL (the portion starting with
'?'
|
String |
getShape()
Returns the
shape attribute. |
String |
getTarget()
Returns the value of the target property of this link.
|
String |
getText()
Returns the
text attribute. |
String |
getType()
Returns the
type attribute. |
String |
getUsername()
Returns the
username attribute. |
void |
jsConstructor()
JavaScript constructor.
|
void |
setCharset(String charset)
Sets the
charset attribute. |
void |
setCoords(String coords)
Sets the
coords attribute. |
void |
setDownload(String download)
Sets the
download attribute. |
void |
setHash(String hash)
Sets the hash portion of the link's URL (the portion following the '#').
|
void |
setHost(String host)
Sets the host portion of the link's URL (the '[hostname]:[port]' portion).
|
void |
setHostname(String hostname)
Sets the hostname portion of the link's URL.
|
void |
setHref(String href)
Sets the
href property. |
void |
setHreflang(String hreflang)
Sets the
hreflang attribute. |
void |
setName(String name)
Sets the name property.
|
void |
setPassword(String password)
Sets the
password attribute. |
void |
setPathname(String pathname)
Sets the pathname portion of the link's URL.
|
void |
setPing(String ping)
Sets the
ping attribute. |
void |
setPort(String port)
Sets the port portion of the link's URL.
|
void |
setProtocol(String protocol)
Sets the protocol portion of the link's URL.
|
void |
setReferrerPolicy(String referrerPolicy)
Sets the rev property.
|
void |
setRel(String rel)
Sets the rel property.
|
void |
setRelList(Object rel)
Sets the relList property.
|
void |
setRev(String rel)
Sets the rev property.
|
void |
setSearch(String search)
Sets the search portion of the link's URL (the portion starting with '?'
|
void |
setShape(String shape)
Sets the
shape attribute. |
void |
setTarget(String target)
Sets the target property of this link.
|
void |
setText(String text)
Sets the
text attribute. |
void |
setType(String type)
Sets the
type attribute. |
void |
setUsername(String username)
Sets the
username attribute. |
blur, click, getAccessKey, getAlign, getAttributeNode, getAutofocus, getBoundingClientRect, getCh, getChOff, getContentEditable, getDataset, getDir, getDomNodeOrDie, getDomNodeOrNull, getEnterKeyHint, getForm, getInnerText, getLang, getLocalName, getNodeName, getOffsetHeight, getOffsetLeft, getOffsetParent_js, getOffsetTop, getOffsetWidth, getOnabort, getOnanimationcancel, getOnanimationend, getOnanimationiteration, getOnanimationstart, getOnauxclick, getOnblur, getOncancel, getOncanplay, getOncanplaythrough, getOnchange, getOnclick, getOnclose, getOncontextmenu, getOncopy, getOncuechange, getOncut, getOndblclick, getOndrag, getOndragend, getOndragenter, getOndragleave, getOndragover, getOndragstart, getOndrop, getOndurationchange, getOnemptied, getOnended, getOnerror, getOnfocus, getOngotpointercapture, getOninput, getOninvalid, getOnkeydown, getOnkeypress, getOnkeyup, getOnload, getOnloadeddata, getOnloadedmetadata, getOnloadstart, getOnlostpointercapture, getOnmousedown, getOnmouseenter, getOnmouseleave, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnmousewheel, getOnmozfullscreenchange, getOnmozfullscreenerror, getOnpaste, getOnpause, getOnplay, getOnplaying, getOnpointercancel, getOnpointerdown, getOnpointerenter, getOnpointerleave, getOnpointermove, getOnpointerout, getOnpointerover, getOnpointerup, getOnprogress, getOnratechange, getOnreset, getOnresize, getOnscroll, getOnscrollend, getOnseeked, getOnseeking, getOnselect, getOnselectionchange, getOnselectstart, getOnstalled, getOnsubmit, getOnsuspend, getOntimeupdate, getOntoggle, getOntransitioncancel, getOntransitionend, getOntransitionrun, getOntransitionstart, getOnvolumechange, getOnwaiting, getOnwheel, getOuterText, getParentHTMLElement, getPosX, getPosY, getPrefix, getStyle, getTabIndex, getTitle, getVAlign, getValue, getWidthOrHeight, isAncestorOfEventTarget, isDisabled, isEndTagForbidden, isHidden, isIsContentEditable, isLowerCaseInOuterHtml, isSpellcheck, setAccessKey, setAlign, setAttribute, setAutofocus, setCh, setChOff, setColorAttribute, setContentEditable, setDir, setDisabled, setDomNode, setEnterKeyHint, setHidden, setInnerText, setLang, setOnabort, setOnanimationcancel, setOnanimationend, setOnanimationiteration, setOnanimationstart, setOnauxclick, setOnblur, setOncancel, setOncanplay, setOncanplaythrough, setOnchange, setOnclick, setOnclose, setOncontextmenu, setOncopy, setOncuechange, setOncut, setOndblclick, setOndrag, setOndragend, setOndragenter, setOndragleave, setOndragover, setOndragstart, setOndrop, setOndurationchange, setOnemptied, setOnended, setOnerror, setOnfocus, setOngotpointercapture, setOninput, setOninvalid, setOnkeydown, setOnkeypress, setOnkeyup, setOnload, setOnloadeddata, setOnloadedmetadata, setOnloadstart, setOnlostpointercapture, setOnmousedown, setOnmouseenter, setOnmouseleave, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnmousewheel, setOnmozfullscreenchange, setOnmozfullscreenerror, setOnpaste, setOnpause, setOnplay, setOnplaying, setOnpointercancel, setOnpointerdown, setOnpointerenter, setOnpointerleave, setOnpointermove, setOnpointerout, setOnpointerover, setOnpointerup, setOnprogress, setOnratechange, setOnreset, setOnresize, setOnscroll, setOnscrollend, setOnseeked, setOnseeking, setOnselect, setOnselectionchange, setOnselectstart, setOnstalled, setOnsubmit, setOnsuspend, setOntimeupdate, setOntoggle, setOntransitioncancel, setOntransitionend, setOntransitionrun, setOntransitionstart, setOnvolumechange, setOnwaiting, setOnwheel, setOuterText, setSpellcheck, setStyle, setTabIndex, setTextContent, setTitle, setVAlign, setValue, setWidthOrHeight, toString
after, append, before, closest, createAttributesObject, createEventHandler, getAttribute, getAttributeNodeNS, getAttributeNS, getAttributes, getChildElementCount, getChildren, getClassList, getClassName_js, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getHTML, getId, getInnerHTML, getInnerHTML, getLastElementChild, getNamespaceURI, getNextElementSibling, getOnbeforecopy, getOnbeforecut, getOnbeforepaste, getOnsearch, getOnwebkitfullscreenchange, getOnwebkitfullscreenerror, getOuterHTML, getParentElement, getPreviousElementSibling, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getTagName, hasAttribute, hasAttributeNS, hasAttributes, insertAdjacentElement, insertAdjacentHTML, insertAdjacentText, isDisplayNone, matches, mozMatchesSelector, prepend, printChildren, printNode, querySelector, querySelectorAll, releaseCapture, remove, removeAttribute, removeAttributeNode, removeAttributeNS, replaceChildren, replaceWith, scroll, scrollBy, scrollIntoView, scrollIntoViewIfNeeded, scrollTo, setAttributeNode, setAttributeNS, setCapture, setClassName_js, setId, setInnerHTML, setOnbeforecopy, setOnbeforecut, setOnbeforepaste, setOnsearch, setOnwebkitfullscreenchange, setOnwebkitfullscreenerror, setOuterHTML, setScrollLeft, setScrollTop, toggleAttribute, webkitMatchesSelector
after, append, appendChild, before, cloneNode, compareDocumentPosition, contains, getBaseURI, getChildNodes, getFirstChild, getJavaScriptNode, getLastChild, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParent, getParentNode, getPreviousSibling, getRootNode, getTextContent, hasChildNodes, insertBefore, insertBeforeImpl, isEqualNode, isSameNode, lookupPrefix, normalize, prepend, removeChild, replaceChild, replaceChildren, replaceWith, setNodeValue
addEventListener, clearEventListenersContainer, dispatchEvent, executeEventLocally, fireEvent, getEventHandler, getEventListenersContainer, hasEventHandlers, isEventHandlerOnWindow, removeEventListener, setEventHandler
clone, equivalentValues, get, getBrowserVersion, getClassName, getPrototype, getScriptableFor, getWindow, getWindow, getWindowFromTopCallScope, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setParentScope, setupPromise, setupRejectedPromise
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, size
public void jsConstructor()
jsConstructor
in class HTMLElement
public void setHref(String href)
href
property.href
- the href
property valuepublic String getHref()
href
property.href
propertypublic void focus()
focus
in class HTMLElement
public void setName(String name)
setName
in class HTMLElement
name
- name attribute valuepublic String getName()
getName
in class HTMLElement
public void setTarget(String target)
target
- target attribute valuepublic String getTarget()
public void setRel(String rel)
rel
- rel attribute valuepublic String getRel()
public String getRev()
public void setRev(String rel)
rel
- rev attribute valuepublic String getReferrerPolicy()
public void setReferrerPolicy(String referrerPolicy)
referrerPolicy
- referrerPolicy attribute valuepublic String getSearch()
public void setSearch(String search) throws Exception
search
- the new search portion of the link's URLException
- if an error occurspublic String getHash()
public void setHash(String hash) throws Exception
hash
- the new hash portion of the link's URLException
- if an error occurspublic String getHost()
public void setHost(String host) throws Exception
host
- the new host portion of the link's URLException
- if an error occurspublic String getHostname()
public void setHostname(String hostname) throws Exception
hostname
- the new hostname portion of the link's URLException
- if an error occurspublic String getPathname()
public void setPathname(String pathname) throws Exception
pathname
- the new pathname portion of the link's URLException
- if an error occurspublic String getPort()
public void setPort(String port) throws Exception
port
- the new port portion of the link's URLException
- if an error occurspublic String getProtocol()
public void setProtocol(String protocol) throws Exception
protocol
- the new protocol portion of the link's URLException
- if an error occurspublic Object getDefaultValue(Class<?> hint)
getDefaultValue
in interface org.htmlunit.corejs.javascript.Scriptable
getDefaultValue
in class HtmlUnitScriptable
hint
- the type hintHtmlUnitScriptable.getDefaultValue(java.lang.Class)
public String getText()
text
attribute.text
attributepublic void setText(String text)
text
attribute.text
- the text
attributepublic String getCharset()
charset
attribute.charset
attributepublic void setCharset(String charset)
charset
attribute.charset
- the charset
attributepublic String getCoords()
coords
attribute.coords
attributepublic void setCoords(String coords)
coords
attribute.coords
- coords
attributepublic String getHreflang()
hreflang
attribute.hreflang
attributepublic void setHreflang(String hreflang)
hreflang
attribute.hreflang
- hreflang
attributepublic String getOrigin()
origin
attribute.origin
attributepublic String getUsername()
username
attribute.username
attributepublic void setUsername(String username)
username
attribute.username
- username
attributepublic String getPassword()
password
attribute.password
attributepublic void setPassword(String password)
password
attribute.password
- password
attributepublic String getDownload()
download
attribute.download
attributepublic void setDownload(String download)
download
attribute.download
- download
attributepublic String getPing()
ping
attribute.ping
attributepublic void setPing(String ping)
ping
attribute.ping
- ping
attributepublic String getShape()
shape
attribute.shape
attributepublic void setShape(String shape)
shape
attribute.shape
- shape
attributepublic String getType()
type
attribute.type
attributepublic void setType(String type)
type
attribute.type
- type
attributepublic DOMTokenList getRelList()
relList
attribute.relList
attributepublic void setRelList(Object rel)
rel
- attribute valueCopyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.