public class History extends Object
| Constructor and Description |
|---|
History() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.gwt.event.shared.HandlerRegistration |
addHistoryHandler(HistoryHandler historyHandler) |
static void |
back()
Programmatic equivalent to the user pressing the browser's 'back' button.
|
static void |
forward()
Programmatic equivalent to the user pressing the browser's 'forward'
button.
|
static void |
go(int delta)
Goes back or forward the specified number of steps in the joint session history.
|
static int |
length()
Returns the number of entries in the joint session history.
|
static void |
pushState(com.google.gwt.core.client.JavaScriptObject data,
String title)
Adds a state object entry to the history.
|
static void |
pushState(com.google.gwt.core.client.JavaScriptObject data,
String title,
String url)
Adds a state object entry to the history.
|
static void |
replaceState(com.google.gwt.core.client.JavaScriptObject data,
String title)
Updates the state object, title of the current entry in the history.
|
static void |
replaceState(com.google.gwt.core.client.JavaScriptObject data,
String title,
String url)
Updates the state object, title and the URL of the current entry in the history.
|
static <T extends com.google.gwt.core.client.JavaScriptObject> |
state()
Some structured data, such as settings or content, assigned to the history item
|
static String |
title()
The name of the item in the history drop-down shown by the browser’s back and forward buttons.
|
static String |
url()
The URL to this state that should be displayed in the address bar
|
public static void back()
public static void forward()
public static void go(int delta)
delta - number of stepspublic static int length()
public static void pushState(com.google.gwt.core.client.JavaScriptObject data,
String title,
String url)
data - Some structured data, such as settings or content, assigned to the history item.title - The name of the item in the history drop-down shown by the browser’s back and forward buttons.url - The URL to this state that should be displayed in the address bar.public static void pushState(com.google.gwt.core.client.JavaScriptObject data,
String title)
data - Some structured data, such as settings or content, assigned to the history item.title - The name of the item in the history drop-down shown by the browser’s back and forward buttons.public static void replaceState(com.google.gwt.core.client.JavaScriptObject data,
String title)
data - Some structured data, such as settings or content, assigned to the history item.title - The name of the item in the history drop-down shown by the browser’s back and forward buttons.public static void replaceState(com.google.gwt.core.client.JavaScriptObject data,
String title,
String url)
data - Some structured data, such as settings or content, assigned to the history item.title - The name of the item in the history drop-down shown by the browser’s back and forward buttons.url - The URL to this state that should be displayed in the address bar.public static <T extends com.google.gwt.core.client.JavaScriptObject> T state()
public static String url()
public static String title()
public static com.google.gwt.event.shared.HandlerRegistration addHistoryHandler(HistoryHandler historyHandler)
Copyright © 2015. All rights reserved.