Modifier and Type | Field and Description |
---|---|
protected java.util.List<NavigationState> |
history |
protected int |
now |
protected AppUI |
ui |
protected WebConfig |
webConfig |
Constructor and Description |
---|
WebHistory(AppUI ui) |
Modifier and Type | Method and Description |
---|---|
NavigationState |
backward()
Performs "Back" transition through history.
|
protected boolean |
checkNotNativeUrlHandlingMode() |
protected void |
dropFutureEntries() |
void |
forward(NavigationState navigationState)
Adds new history entry.
|
NavigationState |
getNext() |
NavigationState |
getNow() |
NavigationState |
getPrevious() |
boolean |
has(NavigationState navigationState)
Checks whether history has the given entry.
|
boolean |
replace(NavigationState navigationState)
Replaces current state by the new one.
|
boolean |
searchBackward(NavigationState navigationState)
Performs search for the given history entry in the past.
|
boolean |
searchForward(NavigationState navigationState)
Performs search for the given history entry in the future.
|
@Inject protected WebConfig webConfig
protected AppUI ui
protected int now
protected java.util.List<NavigationState> history
public WebHistory(AppUI ui)
public void forward(NavigationState navigationState)
History
public NavigationState backward()
History
public NavigationState getNow()
public NavigationState getPrevious()
getPrevious
in interface History
public NavigationState getNext()
public boolean searchBackward(NavigationState navigationState)
History
searchBackward
in interface History
navigationState
- history entrypublic boolean searchForward(NavigationState navigationState)
History
searchForward
in interface History
navigationState
- history entrypublic boolean has(NavigationState navigationState)
History
public boolean replace(NavigationState navigationState)
History
This operation is allowed when only params are changed.
protected void dropFutureEntries()
protected boolean checkNotNativeUrlHandlingMode()