java.lang.Object | |
↳ | com.google.gwt.user.client.Window.Location |
This class provides access to the browser's location's object. The location
object contains information about the current URL and methods to manipulate
it. Location
is a very simple wrapper, so not all browser
quirks are hidden from the user.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Assigns the window to a new URL.
| |||||||||||
Create a
UrlBuilder based on this Window.Location . | |||||||||||
Gets the string to the right of the URL's hash.
| |||||||||||
Gets the URL's host and port name.
| |||||||||||
Gets the URL's host name.
| |||||||||||
Gets the entire URL.
| |||||||||||
Gets the URL's parameter of the specified name.
| |||||||||||
Returns a Map of the URL query parameters for the host page; since
changing the map would not change the window's location, the map returned
is immutable.
| |||||||||||
Gets the path to the URL.
| |||||||||||
Gets the URL's port.
| |||||||||||
Gets the URL's protocol.
| |||||||||||
Gets the URL's query string.
| |||||||||||
Reloads the current browser window.
| |||||||||||
Replaces the current URL with a new one.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Assigns the window to a new URL. All GWT state will be lost.
newURL | the new URL |
---|
Create a UrlBuilder
based on this Window.Location
.
Gets the string to the right of the URL's hash.
Gets the URL's parameter of the specified name. Note that if multiple parameters have been specified with the same name, the last one will be returned.
name | the name of the URL's parameter |
---|
Returns a Map of the URL query parameters for the host page; since changing the map would not change the window's location, the map returned is immutable.
Reloads the current browser window. All GWT state will be lost.
Replaces the current URL with a new one. All GWT state will be lost. In the browser's history, the current URL will be replaced by the new URL.
newURL | the new URL |
---|