|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozilla.javascript.ScriptableObject
com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
com.gargoylesoftware.htmlunit.javascript.host.NodeImpl
com.gargoylesoftware.htmlunit.javascript.host.HTMLElement
com.gargoylesoftware.htmlunit.javascript.host.FocusableHostElement
com.gargoylesoftware.htmlunit.javascript.host.Anchor
public class Anchor
The javascript object that represents an anchor
Field Summary |
---|
Fields inherited from class org.mozilla.javascript.ScriptableObject |
---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
Fields inherited from interface org.mozilla.javascript.Scriptable |
---|
NOT_FOUND |
Constructor Summary | |
---|---|
Anchor()
Create an instance. |
Method Summary | |
---|---|
java.lang.Object |
getDefaultValue(java.lang.Class hint)
Calls for instance for implicit conversion to string |
void |
jsConstructor()
Javascript constructor. |
java.lang.String |
jsxGet_hash()
Returns the hash portion of the link's URL (the portion following the '#'). |
java.lang.String |
jsxGet_host()
Returns the host portion of the link's URL (the '[hostname]:[port]' portion). |
java.lang.String |
jsxGet_hostname()
Returns the hostname portion of the link's URL. |
java.lang.String |
jsxGet_href()
Return the value of the href property of this link. |
java.lang.String |
jsxGet_name()
Return the value of the name property of this link. |
java.lang.String |
jsxGet_pathname()
Returns the pathname portion of the link's URL. |
java.lang.String |
jsxGet_port()
Returns the port portion of the link's URL. |
java.lang.String |
jsxGet_protocol()
Returns the protocol portion of the link's URL, including the trailing ':'. |
java.lang.String |
jsxGet_search()
Returns the search portion of the link's URL (the portion starting with '?' |
java.lang.String |
jsxGet_target()
Return the value of the target property of this link. |
void |
jsxSet_hash(java.lang.String hash)
Sets the hash portion of the link's URL (the portion following the '#'). |
void |
jsxSet_host(java.lang.String host)
Sets the host portion of the link's URL (the '[hostname]:[port]' portion). |
void |
jsxSet_hostname(java.lang.String hostname)
Sets the hostname portion of the link's URL. |
void |
jsxSet_href(java.lang.String href)
Set the href property. |
void |
jsxSet_name(java.lang.String name)
Set the name property. |
void |
jsxSet_pathname(java.lang.String pathname)
Sets the pathname portion of the link's URL. |
void |
jsxSet_port(java.lang.String port)
Sets the port portion of the link's URL. |
void |
jsxSet_protocol(java.lang.String protocol)
Sets the protocol portion of the link's URL. |
void |
jsxSet_search(java.lang.String search)
Sets the search portion of the link's URL (the portion starting with '?' |
void |
jsxSet_target(java.lang.String target)
set the target property of this link. |
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.FocusableHostElement |
---|
jsxFunction_blur, jsxFunction_focus |
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.NodeImpl |
---|
executeEvent, fireEvent, getEventHandler, jsxFunction_addEventListener, jsxFunction_appendChild, jsxFunction_attachEvent, jsxFunction_cloneNode, jsxFunction_detachEvent, jsxFunction_hasChildNodes, jsxFunction_insertBefore, jsxFunction_isSameNode, jsxFunction_removeChild, jsxFunction_removeEventListener, jsxFunction_replaceChild, jsxGet_childNodes, jsxGet_firstChild, jsxGet_lastChild, jsxGet_nextSibling, jsxGet_nodeName, jsxGet_nodeType, jsxGet_nodeValue, jsxGet_parentNode, jsxGet_previousSibling, jsxSet_nodeValue, setEventHandler |
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable |
---|
get, getBooleanArg, getClassName, getDomNodeOrDie, getDomNodeOrNull, getHtmlElementOrDie, getHtmlElementOrNull, getIntArg, getObjectArg, getStringArg, makeScriptableFor, setHtmlElement |
Methods inherited from class org.mozilla.javascript.ScriptableObject |
---|
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isConst, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.mozilla.javascript.Scriptable |
---|
delete, delete, get, get, getClassName, getIds, getParentScope, getPrototype, has, has, hasInstance, put, put, setParentScope, setPrototype |
Constructor Detail |
---|
public Anchor()
Method Detail |
---|
public java.lang.Object getDefaultValue(java.lang.Class hint)
getDefaultValue
in interface org.mozilla.javascript.Scriptable
getDefaultValue
in class SimpleScriptable
hint
- the type hint
SimpleScriptable.getDefaultValue(java.lang.Class)
public void jsConstructor()
public java.lang.String jsxGet_hash() throws java.lang.Exception
java.lang.Exception
- If an error occurs.public java.lang.String jsxGet_host() throws java.lang.Exception
java.lang.Exception
- If an error occurs.public java.lang.String jsxGet_hostname() throws java.lang.Exception
java.lang.Exception
- If an error occurs.public java.lang.String jsxGet_href() throws java.lang.Exception
java.lang.Exception
- If an error occurs.public java.lang.String jsxGet_name() throws java.lang.Exception
java.lang.Exception
- If an error occurs.public java.lang.String jsxGet_pathname() throws java.lang.Exception
java.lang.Exception
- If an error occurs.public java.lang.String jsxGet_port() throws java.lang.Exception
java.lang.Exception
- If an error occurs.public java.lang.String jsxGet_protocol() throws java.lang.Exception
java.lang.Exception
- If an error occurs.public java.lang.String jsxGet_search() throws java.lang.Exception
java.lang.Exception
- If an error occurs.public java.lang.String jsxGet_target()
public void jsxSet_hash(java.lang.String hash) throws java.lang.Exception
hash
- The new hash portion of the link's URL.
java.lang.Exception
- If an error occurs.public void jsxSet_host(java.lang.String host) throws java.lang.Exception
host
- The new host portion of the link's URL.
java.lang.Exception
- If an error occurs.public void jsxSet_hostname(java.lang.String hostname) throws java.lang.Exception
hostname
- The new hostname portion of the link's URL.
java.lang.Exception
- If an error occurs.public void jsxSet_href(java.lang.String href)
href
- href attribute value.public void jsxSet_name(java.lang.String name)
name
- name attribute value.public void jsxSet_pathname(java.lang.String pathname) throws java.lang.Exception
pathname
- The new pathname portion of the link's URL.
java.lang.Exception
- If an error occurs.public void jsxSet_port(java.lang.String port) throws java.lang.Exception
port
- The new port portion of the link's URL.
java.lang.Exception
- If an error occurs.public void jsxSet_protocol(java.lang.String protocol) throws java.lang.Exception
protocol
- The new protocol portion of the link's URL.
java.lang.Exception
- If an error occurs.public void jsxSet_search(java.lang.String search) throws java.lang.Exception
search
- The new search portion of the link's URL.
java.lang.Exception
- If an error occurs.public void jsxSet_target(java.lang.String target)
target
- target attribute value.
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |