Modifier and Type | Field and Description |
---|---|
protected java.util.List<NavigationState> |
history |
protected int |
now |
protected AppUI |
ui |
protected UiProperties |
uiProperties |
Constructor and Description |
---|
WebHistory() |
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.
|
void |
setAppUi(AppUI ui) |
@Autowired protected UiProperties uiProperties
protected AppUI ui
protected int now
protected java.util.List<NavigationState> history
@Autowired public void setAppUi(AppUI ui)
public void forward(NavigationState navigationState)
History
public NavigationState backward()
History
@Nullable public NavigationState getNow()
@Nullable public NavigationState getPrevious()
getPrevious
in interface History
@Nullable 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()