All Downloads are FREE. Search and download functionalities are using the official Maven repository.

elemental.html.Location Maven / Gradle / Ivy

Go to download

Vaadin is a web application framework for Rich Internet Applications (RIA). Vaadin enables easy development and maintenance of fast and secure rich web applications with a stunning look and feel and a wide browser support. It features a server-side architecture with the majority of the logic running on the server. Ajax technology is used at the browser-side to ensure a rich and interactive user experience.

There is a newer version: 8.25.2
Show newest version
/*
 * Copyright 2012 Google Inc.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package elemental.html;
import elemental.util.Indexable;

import elemental.events.*;
import elemental.util.*;
import elemental.dom.*;
import elemental.html.*;
import elemental.css.*;
import elemental.stylesheets.*;

import java.util.Date;

/**
  * Returns a  Location object, which contains information about the URL of the document and provides methods for changing that URL. You can also assign to this property to load another URL.
  */
public interface Location {

  Indexable getAncestorOrigins();


  /**
    * the part of the URL that follows the # symbol, including the # symbol.
You can listen for the hashchange event to get notified of changes to the hash in supporting browsers. */ String getHash(); void setHash(String arg); /** * the host name and port number. */ String getHost(); void setHost(String arg); /** * the host name (without the port number or square brackets). */ String getHostname(); void setHostname(String arg); /** * the entire URL. */ String getHref(); void setHref(String arg); String getOrigin(); /** * the path (relative to the host). */ String getPathname(); void setPathname(String arg); /** * the port number of the URL. */ String getPort(); void setPort(String arg); /** * the protocol of the URL. */ String getProtocol(); void setProtocol(String arg); /** * the part of the URL that follows the ? symbol, including the ? symbol. */ String getSearch(); void setSearch(String arg); /** * Load the document at the provided URL. */ void assign(String url); /** * Reload the document from the current URL. forceget is a boolean, which, when it is true, causes the page to always be reloaded from the server. If it is false or not specified, the browser may reload the page from its cache. */ void reload(); /** * Replace the current document with the one at the provided URL. The difference from the assign() method is that after using replace() the current page will not be saved in session history, meaning the user won't be able to use the Back button to navigate to it. */ void replace(String url); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy