public class HTMLAnchorElement extends HTMLElement
HTMLElement.ProxyDomNodeBEHAVIOR_ID_CLIENT_CAPS, BEHAVIOR_ID_DOWNLOAD, BEHAVIOR_ID_HOMEPAGEATTRIBUTE_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| Constructor and Description |
|---|
HTMLAnchorElement()
The constructor.
|
| 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 |
getMethods()
Returns the
Methods attribute. |
String |
getMimeType()
Returns the
mimeType attribute. |
String |
getName()
Returns the value of the name property of this link.
|
String |
getNameProp()
Returns the
nameProp attribute. |
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 |
getProtocolLong()
Returns the
protocolLong attribute. |
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 |
getUrn()
Returns the
urn attribute. |
String |
getUsername()
Returns the
username attribute. |
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 |
setMethods(String methods)
Sets the
Methods attribute. |
void |
setMimeType(String mimeType)
Sets the
mimeType attribute. |
void |
setName(String name)
Sets the name property.
|
void |
setOrigin(String origin)
Sets the
origin attribute. |
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 |
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 |
setUrn(String urn)
Sets the
urn attribute. |
void |
setUsername(String username)
Sets the
username attribute. |
addBehavior, addComponentRequest, blur, clearAttributes, clearComponentRequest, click, compareVersions, contains, doComponentRequest, getAccessKey, getAlign, getAttributeNode, getAvailHeight, getAvailWidth, getBoundingClientRect, getBufferDepth, getCh, getChildren, getChOff, getClassList, getClassName_js, getColorDepth, getComponentVersion, getContentEditable, getCpuClass, getCurrentStyle, getDataset, getDir, getDomNodeOrDie, getDomNodeOrNull, getElementsByClassName, getHeight, getId, getInnerHTML, getInnerText, getLang, getLanguage, getLocalName, getNodeName, getOffsetHeight, getOffsetLeft, getOffsetParent_js, getOffsetTop, getOffsetWidth, getOnabort, getOnactivate, getOnanimationend, getOnanimationiteration, getOnanimationstart, getOnauxclick, getOnbeforeactivate, getOnbeforecopy, getOnbeforecut, getOnbeforedeactivate, getOnbeforepaste, getOnblur, getOncancel, getOncanplay, getOncanplaythrough, getOnchange, getOnclick, getOnclose, getOncontextmenu, getOncopy, getOncuechange, getOncut, getOndblclick, getOndeactivate, getOndrag, getOndragend, getOndragenter, getOndragexit, getOndragleave, getOndragover, getOndragstart, getOndrop, getOndurationchange, getOnemptied, getOnended, getOnerror, getOnfocus, getOnfocusin, getOnfocusout, getOngotpointercapture, getOnhelp, getOninput, getOninvalid, getOnkeydown, getOnkeypress, getOnkeyup, getOnload, getOnloadeddata, getOnloadedmetadata, getOnloadend, getOnloadstart, getOnlostpointercapture, getOnmousedown, getOnmouseenter, getOnmouseleave, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnmousewheel, getOnmozfullscreenchange, getOnmozfullscreenerror, getOnmscontentzoom, getOnmsmanipulationstatechanged, getOnpaste, getOnpause, getOnplay, getOnplaying, getOnpointercancel, getOnpointerdown, getOnpointerenter, getOnpointerleave, getOnpointermove, getOnpointerout, getOnpointerover, getOnpointerup, getOnprogress, getOnratechange, getOnreset, getOnresize, getOnscroll, getOnseeked, getOnseeking, getOnselect, getOnselectstart, getOnshow, getOnstalled, getOnsubmit, getOnsuspend, getOntimeupdate, getOntoggle, getOntransitionend, getOnvolumechange, getOnwaiting, getOnwebkitanimationend, getOnwebkitanimationiteration, getOnwebkitanimationstart, getOnwebkittransitionend, getOnwheel, getOuterHTML, getParentElement, getParentHTMLElement, getPlatform, getPosX, getPosY, getPrefix, getRuntimeStyle, getStyle, getSystemLanguage, getTabIndex, getTitle, getUniqueID, getUserLanguage, getVAlign, getWidth, getWidthOrHeight, hasAttribute, insertAdjacentElement, insertAdjacentHTML, insertAdjacentText, isAncestorOfEventTarget, isComponentInstalled, isCookieEnabled, isDisabled, isEndTagForbidden, isHidden, isHomePage, isIsContentEditable, isJavaEnabled, isLowerCaseInOuterHtml, isSpellcheck, mergeAttributes, navigateHomePage, readAttributes, releaseCapture, removeBehavior, removeNode, scrollIntoView, setAccessKey, setActive, setAlign, setAttribute, setCapture, setCh, setChOff, setClassName_js, setColorAttribute, setContentEditable, setDir, setDisabled, setDomNode, setHidden, setHomePage, setId, setInnerHTML, setInnerText, setInnerTextImpl, setLang, setLanguage, setOnabort, setOnactivate, setOnanimationend, setOnanimationiteration, setOnanimationstart, setOnauxclick, setOnbeforeactivate, setOnbeforecopy, setOnbeforecut, setOnbeforedeactivate, setOnbeforepaste, setOnblur, setOncancel, setOncanplay, setOncanplaythrough, setOnchange, setOnclick, setOnclose, setOncontextmenu, setOncopy, setOncuechange, setOncut, setOndblclick, setOndeactivate, setOndrag, setOndragend, setOndragenter, setOndragexit, setOndragleave, setOndragover, setOndragstart, setOndrop, setOndurationchange, setOnemptied, setOnended, setOnerror, setOnfocus, setOnfocusin, setOnfocusout, setOngotpointercapture, setOnhelp, setOninput, setOninvalid, setOnkeydown, setOnkeypress, setOnkeyup, setOnload, setOnloadeddata, setOnloadedmetadata, setOnloadend, setOnloadstart, setOnlostpointercapture, setOnmousedown, setOnmouseenter, setOnmouseleave, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnmousewheel, setOnmozfullscreenchange, setOnmozfullscreenerror, setOnmscontentzoom, setOnmsmanipulationstatechanged, setOnpaste, setOnpause, setOnplay, setOnplaying, setOnpointercancel, setOnpointerdown, setOnpointerenter, setOnpointerleave, setOnpointermove, setOnpointerout, setOnpointerover, setOnpointerup, setOnprogress, setOnratechange, setOnreset, setOnresize, setOnscroll, setOnseeked, setOnseeking, setOnselect, setOnselectstart, setOnshow, setOnstalled, setOnsubmit, setOnsuspend, setOntimeupdate, setOntoggle, setOntransitionend, setOnvolumechange, setOnwaiting, setOnwebkitanimationend, setOnwebkitanimationiteration, setOnwebkitanimationstart, setOnwebkittransitionend, setOnwheel, setOuterHTML, setSpellcheck, setStyle, setTabIndex, setTagUrn, setTextContent, setTitle, setVAlign, setWidthOrHeight, startDownload, toStringafter, before, createAttributesObject, createEventHandler, createTextRange, get, getAttribute, getAttributeNodeNS, getAttributeNS, getAttributes, getChildElementCount, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getInnerHTML, getLastElementChild, getNamespaceURI, getNextElementSibling, getOnmsgesturechange, getOnmsgesturedoubletap, getOnmsgestureend, getOnmsgesturehold, getOnmsgesturestart, getOnmsgesturetap, getOnmsgotpointercapture, getOnmsinertiastart, getOnmslostpointercapture, getOnmspointercancel, getOnmspointerdown, getOnmspointerenter, getOnmspointerleave, getOnmspointermove, getOnmspointerout, getOnmspointerover, getOnmspointerup, getOnsearch, getOnwebkitfullscreenchange, getOnwebkitfullscreenerror, getPreviousElementSibling, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getTagName, hasAttributeNS, hasAttributes, isDisplayNone, matches, mozMatchesSelector, msMatchesSelector, printChildren, querySelector, querySelectorAll, remove, removeAttribute, removeAttributeNode, removeAttributeNS, replaceWith, scrollIntoViewIfNeeded, setAttributeNode, setAttributeNS, setDefaults, setOnmsgesturechange, setOnmsgesturedoubletap, setOnmsgestureend, setOnmsgesturehold, setOnmsgesturestart, setOnmsgesturetap, setOnmsgotpointercapture, setOnmsinertiastart, setOnmslostpointercapture, setOnmspointercancel, setOnmspointerdown, setOnmspointerenter, setOnmspointerleave, setOnmspointermove, setOnmspointerout, setOnmspointerover, setOnmspointerup, setOnsearch, setOnwebkitfullscreenchange, setOnwebkitfullscreenerror, setScrollLeft, setScrollTop, webkitMatchesSelectorappendChild, asJavaScriptException, cloneNode, compareDocumentPosition, getBaseURI, getChildNodes, getFirstChild, getJavaScriptNode, getLastChild, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParent, getParentNode, getPreviousSibling, getTextContent, hasChildNodes, insertBefore, insertBeforeImpl, isSameNode, normalize, removeChild, replaceChild, setNodeValueaddEventListener, clearEventListenersContainer, dispatchEvent, executeEventLocally, fireEvent, getEventHandler, getEventListenersContainer, hasEventHandlers, isEventHandlerOnWindow, removeEventListener, setEventHandlerclone, equivalentValues, getBrowserVersion, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setHtmlElementdefineFunctionProperties, defineProperty, getClassName, put, setClassName, setParentScopeapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, 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, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, sizepublic void setHref(String href)
href property.href - the href property valuepublic String getHref()
href property.href propertypublic void focus()
focus in class HTMLElementpublic void setName(String name)
name - name attribute valuepublic String getName()
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 net.sourceforge.htmlunit.corejs.javascript.ScriptablegetDefaultValue in class SimpleScriptablehint - the type hintSimpleScriptable.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 void setOrigin(String origin)
origin attribute.origin - 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 String getProtocolLong()
protocolLong attribute.protocolLong attributepublic String getMethods()
Methods attribute.Methods attributepublic void setMethods(String methods)
Methods attribute.methods - Methods attributepublic String getMimeType()
mimeType attribute.mimeType attributepublic void setMimeType(String mimeType)
mimeType attribute.mimeType - mimeType attributepublic String getNameProp()
nameProp attribute.nameProp attributepublic String getUrn()
urn attribute.urn attributepublic void setUrn(String urn)
urn attribute.urn - urn attributeCopyright © 2002–2019 Gargoyle Software Inc.. All rights reserved.