|
||||||||||
| 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 |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| 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()
Creates an instance. |
|
| Method Summary | |
|---|---|
Object |
getDefaultValue(Class<?> hint)
Calls for instance for implicit conversion to string. |
String |
jsxGet_hash()
Returns the hash portion of the link's URL (the portion following the '#', including the '#'). |
String |
jsxGet_host()
Returns the host portion of the link's URL (the '[hostname]:[port]' portion). |
String |
jsxGet_hostname()
Returns the hostname portion of the link's URL. |
String |
jsxGet_href()
Returns the value of this link's href property. |
String |
jsxGet_name()
Returns the value of the name property of this link. |
String |
jsxGet_pathname()
Returns the pathname portion of the link's URL. |
String |
jsxGet_port()
Returns the port portion of the link's URL. |
String |
jsxGet_protocol()
Returns the protocol portion of the link's URL, including the trailing ':'. |
String |
jsxGet_search()
Returns the search portion of the link's URL (the portion starting with '?' and up to but not including any '#'). |
String |
jsxGet_target()
Returns the value of the target property of this link. |
void |
jsxSet_hash(String hash)
Sets the hash portion of the link's URL (the portion following the '#'). |
void |
jsxSet_host(String host)
Sets the host portion of the link's URL (the '[hostname]:[port]' portion). |
void |
jsxSet_hostname(String hostname)
Sets the hostname portion of the link's URL. |
void |
jsxSet_href(String href)
Sets the href property. |
void |
jsxSet_name(String name)
Sets the name property. |
void |
jsxSet_pathname(String pathname)
Sets the pathname portion of the link's URL. |
void |
jsxSet_port(String port)
Sets the port portion of the link's URL. |
void |
jsxSet_protocol(String protocol)
Sets the protocol portion of the link's URL. |
void |
jsxSet_search(String search)
Sets the search portion of the link's URL (the portion starting with '?' and up to but not including any '#').. |
void |
jsxSet_target(String target)
Sets the target property of this link. |
| Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.Element |
|---|
createAttributesObject, jsxFunction_getAttribute, jsxFunction_getElementsByTagNameNS, jsxFunction_hasAttribute, jsxFunction_removeAttribute, jsxFunction_selectNodes, jsxFunction_selectSingleNode, jsxGet_attributes, jsxGet_tagName, jsxGet_text |
| Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable |
|---|
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, makeScriptableFor, setCaseSensitive, setDomNode, setHtmlElement |
| Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
|---|
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, clear, containsKey, containsValue, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, entrySet, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, keySet, preventExtensions, put, put, put, putAll, putConst, putConstProperty, putProperty, putProperty, redefineProperty, remove, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, size, values |
| 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, get, getClassName, getIds, getParentScope, getPrototype, has, has, hasInstance, put, put, setParentScope, setPrototype |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public HTMLAnchorElement()
| Method Detail |
|---|
public void jsxSet_href(String href)
href - the href property valuepublic String jsxGet_href()
public void jsxSet_name(String name)
name - name attribute valuepublic String jsxGet_name()
public void jsxSet_target(String target)
target - target attribute valuepublic String jsxGet_target()
public String jsxGet_search()
throws Exception
Exception - if an error occurs
public void jsxSet_search(String search)
throws Exception
search - the new search portion of the link's URL
Exception - if an error occurs
public String jsxGet_hash()
throws Exception
Exception - if an error occurs
public void jsxSet_hash(String hash)
throws Exception
hash - the new hash portion of the link's URL
Exception - if an error occurs
public String jsxGet_host()
throws Exception
Exception - if an error occurs
public void jsxSet_host(String host)
throws Exception
host - the new host portion of the link's URL
Exception - if an error occurs
public String jsxGet_hostname()
throws Exception
Exception - if an error occurs
public void jsxSet_hostname(String hostname)
throws Exception
hostname - the new hostname portion of the link's URL
Exception - if an error occurs
public String jsxGet_pathname()
throws Exception
Exception - if an error occurs
public void jsxSet_pathname(String pathname)
throws Exception
pathname - the new pathname portion of the link's URL
Exception - if an error occurs
public String jsxGet_port()
throws Exception
Exception - if an error occurs
public void jsxSet_port(String port)
throws Exception
port - the new port portion of the link's URL
Exception - if an error occurs
public String jsxGet_protocol()
throws Exception
Exception - if an error occurs
public void jsxSet_protocol(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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||