Package org.loboevolution.html.js
Class LocationImpl
java.lang.Object
org.loboevolution.js.AbstractScriptableDelegate
org.loboevolution.html.js.LocationImpl
- All Implemented Interfaces:
Location,ScriptableDelegate
Location class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidNavigates to the given URL.getAncestorOrigins.getHash()getHash.getHost()getHost.getHostname.getHref()getHref.Returns the Location object's URL's origin.getPathname.getPort()getPort.getProtocol.getSearch.voidreload()reload.voidreload(boolean forcedReload) reload.voidRemoves the current page from the session history and navigates to the given URL.voidsetHash.voidsetHost.voidsetHostname(String hostname) setHostname.voidsetHref.voidsetPathname(String pathname) setPathname.voidsetPort.voidsetProtocol(String protocol) setProtocol.voidsetSearch.toString()Methods inherited from class org.loboevolution.js.AbstractScriptableDelegate
getScriptable, setScriptable
-
Constructor Details
-
LocationImpl
-
-
Method Details
-
getHash
getHash.
-
getHost
getHost.
-
getHostname
getHostname.
- Specified by:
getHostnamein interfaceLocation- Returns:
- a
Stringobject.
-
getHref
getHref.
-
getPathname
getPathname.
- Specified by:
getPathnamein interfaceLocation- Returns:
- a
Stringobject.
-
getPort
getPort.
-
getProtocol
getProtocol.
- Specified by:
getProtocolin interfaceLocation- Returns:
- a
Stringobject.
-
getSearch
getSearch.
-
reload
public void reload()reload.
-
replace
Removes the current page from the session history and navigates to the given URL.replace.
-
setHref
setHref.
setHref.
-
toString
-
getAncestorOrigins
getAncestorOrigins.
- Specified by:
getAncestorOriginsin interfaceLocation- Returns:
- a
DOMStringListobject.
-
setHash
setHash.
-
setHost
setHost.
-
setHostname
setHostname.
- Specified by:
setHostnamein interfaceLocation- Parameters:
hostname- aStringobject.
-
getOrigin
Returns the Location object's URL's origin. -
setPathname
setPathname.
- Specified by:
setPathnamein interfaceLocation- Parameters:
pathname- aStringobject.
-
setPort
setPort.
-
setProtocol
setProtocol.
- Specified by:
setProtocolin interfaceLocation- Parameters:
protocol- aStringobject.
-
setSearch
setSearch.
-
assign
Navigates to the given URL. -
reload
public void reload(boolean forcedReload) reload.
-