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 |
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
'?' and up to but not including any '#').
|
String |
getSearchParams()
Returns the
searchParams attribute. |
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 |
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 '?'
and up to but not including any '#')..
|
void |
setSearchParams(URLSearchParams searchParams)
Sets the
searchParams attribute. |
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, createTextRange, doComponentRequest, getAccessKey, getAlign, getAttributeNode, getAttributeNodeNS, getAvailHeight, getAvailWidth, getBoundingClientRect, getBufferDepth, getCh, getChildren, getChOff, getClassList, getClassName_js, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getColorDepth, getComponentVersion, getConnectionType, getContentEditable, getCookieEnabled, getCpuClass, getDataset, getDefaultStyleDisplay, getDir, getDisabled, getDomNodeOrDie, getDomNodeOrNull, getElementsByClassName, getHeight, getId, getInnerHTML, getInnerText, getIsContentEditable, getJavaEnabled, getLang, getLanguage, getLocalName, getNodeName, getOffsetHeight, getOffsetLeft, getOffsetParent_js, getOffsetTop, getOffsetWidth, getOnchange, getOnsubmit, getOuterHTML, getParentElement, getParentHTMLElement, getPlatform, getPosX, getPosY, getPrefix, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getSpellcheck, getSystemLanguage, getTabIndex, getTitle, getUniqueID, getUserLanguage, getVAlign, getWidth, getWidthOrHeight, getWithFallback, hasAttribute, insertAdjacentElement, insertAdjacentHTML, insertAdjacentText, isAncestorOfEventTarget, isComponentInstalled, isEndTagForbidden, isHomePage, isLowerCaseInOuterHtml, mergeAttributes, navigateHomePage, parseHtmlSnippet, readAttributes, releaseCapture, removeAttributeNode, removeBehavior, removeNode, scrollIntoView, setAccessKey, setActive, setAlign, setAttribute, setCapture, setCh, setChOff, setClassName_js, setColorAttribute, setContentEditable, setDir, setDisabled, setDomNode, setHomePage, setId, setInnerHTML, setInnerText, setInnerTextImpl, setLang, setLanguage, setOnchange, setOnsubmit, setOuterHTML, setScrollLeft, setScrollTop, setSpellcheck, setTabIndex, setTagUrn, setTextContent, setTitle, setVAlign, setWidthOrHeight, startDownload, toStringcreateAttributesObject, createEventHandler, get, getAttribute, getAttributeNS, getAttributes, getBaseURI, getChildElementCount, getCurrentStyle, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getLastElementChild, getNextElementSibling, getPreviousElementSibling, getRuntimeStyle, getStyle, getTagName, hasAttributeNS, querySelector, querySelectorAll, removeAttribute, removeAttributeNS, setAttributeNode, setAttributeNS, setDefaultsfireEvent, getOnblur, getOnclick, getOncontextmenu, getOndblclick, getOnerror, getOnfocus, getOnfocusin, getOnfocusout, getOninput, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnpropertychange, getOnresize, setOnblur, setOnclick, setOncontextmenu, setOndblclick, setOnerror, setOnfocus, setOnfocusin, setOnfocusout, setOninput, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnpropertychange, setOnresizeappendChild, asJavaScriptException, cloneNode, compareDocumentPosition, contains, detachEvent, getChildNodes, getFirstChild, getJavaScriptNode, getLastChild, getNamespaceURI, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParent, getParentNode, getPreviousSibling, getTextContent, hasChildNodes, insertBefore, insertBeforeImpl, isSameNode, normalize, remove, removeChild, replaceChild, setNodeValueaddEventListener, clearEventListenersContainer, dispatchEvent, executeEventLocally, fireEvent, getEventHandler, getEventHandlerProp, getEventListenersContainer, hasEventHandlers, removeEventListener, setEventHandler, setEventHandlerPropclone, equivalentValues, getBrowserVersion, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setHtmlElementdefineFunctionProperties, defineProperty, getClassName, setClassName, setParentScopeapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, 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 void setRev(String rel)
rel - rev attribute valuepublic String getRev()
public String getSearch()
Exception - if an error occurspublic 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 getSearchParams()
searchParams attribute.searchParams attributepublic void setSearchParams(URLSearchParams searchParams)
searchParams attribute.searchParams - searchParams 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–2016 Gargoyle Software Inc.. All rights reserved.