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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Navigates 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.void
reload()
reload.void
reload
(boolean forcedReload) reload.void
Removes the current page from the session history and navigates to the given URL.void
setHash.void
setHost.void
setHostname
(String hostname) setHostname.void
setHref.void
setPathname
(String pathname) setPathname.void
setPort.void
setProtocol
(String protocol) setProtocol.void
setSearch.toString()
Methods inherited from class org.loboevolution.js.AbstractScriptableDelegate
getScriptable, setScriptable
-
Constructor Details
-
LocationImpl
-
-
Method Details
-
getHash
getHash.
-
getHost
getHost.
-
getHostname
getHostname.
- Specified by:
getHostname
in interfaceLocation
- Returns:
- a
String
object.
-
getHref
getHref.
-
getPathname
getPathname.
- Specified by:
getPathname
in interfaceLocation
- Returns:
- a
String
object.
-
getPort
getPort.
-
getProtocol
getProtocol.
- Specified by:
getProtocol
in interfaceLocation
- Returns:
- a
String
object.
-
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:
getAncestorOrigins
in interfaceLocation
- Returns:
- a
DOMStringList
object.
-
setHash
setHash.
-
setHost
setHost.
-
setHostname
setHostname.
- Specified by:
setHostname
in interfaceLocation
- Parameters:
hostname
- aString
object.
-
getOrigin
Returns the Location object's URL's origin. -
setPathname
setPathname.
- Specified by:
setPathname
in interfaceLocation
- Parameters:
pathname
- aString
object.
-
setPort
setPort.
-
setProtocol
setProtocol.
- Specified by:
setProtocol
in interfaceLocation
- Parameters:
protocol
- aString
object.
-
setSearch
setSearch.
-
assign
Navigates to the given URL. -
reload
public void reload(boolean forcedReload) reload.
-