|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.htmlunit.corejs.javascript.ScriptableObject
com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
com.gargoylesoftware.htmlunit.javascript.host.Node
com.gargoylesoftware.htmlunit.javascript.host.EventNode
com.gargoylesoftware.htmlunit.javascript.host.Element
com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement
com.gargoylesoftware.htmlunit.javascript.host.html.HTMLAnchorElement
public class HTMLAnchorElement
The JavaScript object that represents an anchor.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement |
|---|
HTMLElement.ProxyDomNode |
| Field Summary |
|---|
| Fields inherited from class com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement |
|---|
BEHAVIOR_ID_CLIENT_CAPS, BEHAVIOR_ID_DOWNLOAD, BEHAVIOR_ID_HOMEPAGE |
| Fields inherited from class com.gargoylesoftware.htmlunit.javascript.host.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 |
| Fields inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
|---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
| Fields inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable |
|---|
NOT_FOUND |
| Constructor Summary | |
|---|---|
HTMLAnchorElement()
|
|
| Method Summary | |
|---|---|
String |
getAccessKey()
Returns the "accessKey" property. |
String |
getDefaultStyleDisplay()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. Returns the default display style. |
Object |
getDefaultValue(Class<?> hint)
Calls for instance for implicit conversion to string. |
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 |
getName()
Returns the value of the name property of this link. |
String |
getPathname()
Returns the pathname portion of the link's URL. |
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 |
getRel()
Returns the value of the rel property. |
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 |
getTarget()
Returns the value of the target property of this link. |
void |
setAccessKey(String accessKey)
Sets the "accessKey" property. |
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 |
setName(String name)
Sets the name property. |
void |
setPathname(String pathname)
Sets the pathname portion of the link's URL. |
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 |
setTarget(String target)
Sets the target property of this link. |
| Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.Element |
|---|
createAttributesObject, getAttributeNS, getAttributes, getBaseURI, getChildElementCount, getCurrentStyle, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getLastElementChild, getNextElementSibling, getPreviousElementSibling, getRuntimeStyle, getStyle, getText, hasAttributeNS, removeAttribute, removeAttributeNS, selectNodes, selectSingleNode, setAttributeNS, setDefaults |
| Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.EventNode |
|---|
fireEvent, getOnblur, getOnclick, getOncontextmenu, getOndblclick, getOnerror, getOnfocus, getOnfocusin, getOnfocusout, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnpropertychange, getOnresize, setOnblur, setOnclick, setOncontextmenu, setOndblclick, setOnerror, setOnfocus, setOnfocusin, setOnfocusout, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnpropertychange, setOnresize |
| Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.Node |
|---|
addEventListener, appendChild, attachEvent, cloneNode, compareDocumentPosition, contains, detachEvent, executeEvent, fireEvent, fireEvent, getBaseName, getChildNodes, getEventHandler, getEventHandlerProp, getFirstChild, getJavaScriptNode, getLastChild, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParent, getParentNode, getPreviousSibling, getTextContent, getXml, hasChildNodes, hasEventHandlers, insertBefore, insertBeforeImpl, isSameNode, normalize, removeChild, removeEventListener, replaceChild, setEventHandler, setEventHandlerProp, setNodeValue |
| Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable |
|---|
clone, defineFunctionProperties, defineProperty, equivalentValues, getBrowserVersion, getClassName, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setHtmlElement, setParentScope |
| Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
|---|
applyDescriptorToAttributeBitset, 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, 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, setGetterOrSetter, setPrototype, size |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable |
|---|
delete, delete, get, getClassName, getIds, getParentScope, getPrototype, has, has, hasInstance, put, put, setParentScope, setPrototype |
| Constructor Detail |
|---|
public HTMLAnchorElement()
| Method Detail |
|---|
public void setHref(String href)
href - the href property valuepublic String getHref()
public 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()
throws Exception
Exception - if an error occurs
public void setSearch(String search)
throws Exception
search - the new search portion of the link's URL
Exception - if an error occurs
public String getHash()
throws Exception
Exception - if an error occurs
public void setHash(String hash)
throws Exception
hash - the new hash portion of the link's URL
Exception - if an error occurs
public String getHost()
throws Exception
Exception - if an error occurs
public void setHost(String host)
throws Exception
host - the new host portion of the link's URL
Exception - if an error occurs
public String getHostname()
throws Exception
Exception - if an error occurs
public void setHostname(String hostname)
throws Exception
hostname - the new hostname portion of the link's URL
Exception - if an error occurs
public String getPathname()
throws Exception
Exception - if an error occurs
public void setPathname(String pathname)
throws Exception
pathname - the new pathname portion of the link's URL
Exception - if an error occurs
public String getPort()
throws Exception
Exception - if an error occurs
public void setPort(String port)
throws Exception
port - the new port portion of the link's URL
Exception - if an error occurs
public String getProtocol()
throws Exception
Exception - if an error occurs
public void setProtocol(String protocol)
throws Exception
protocol - the new protocol portion of the link's URL
Exception - if an error occurspublic Object getDefaultValue(Class<?> hint)
getDefaultValue in interface net.sourceforge.htmlunit.corejs.javascript.ScriptablegetDefaultValue in class SimpleScriptablehint - the type hint
SimpleScriptable.getDefaultValue(java.lang.Class)public String getAccessKey()
getAccessKey in class HTMLElementpublic void setAccessKey(String accessKey)
setAccessKey in class HTMLElementaccessKey - the "accessKey" propertypublic String getDefaultStyleDisplay()
getDefaultStyleDisplay in class Element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||