Package io.jmix.ui.navigation
Interface History
- All Known Implementing Classes:
WebHistory
public interface History
Interface defining methods to store and access local copy of opened screens history.
It is mainly used by UrlChangeHandler to distinguish history and navigation transitions.
Pay attention that manual history mutation can lead to errors.
-
Method Summary
Modifier and TypeMethodDescriptionbackward()
Performs "Back" transition through history.void
forward
(NavigationState navigationState) Adds new history entry.getNext()
getNow()
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.
-
Method Details
-
backward
NavigationState backward()Performs "Back" transition through history.- Returns:
- previous history entry
-
getNow
- Returns:
- current history entry
-
getPrevious
- Returns:
- previous history entry
-
getNext
- Returns:
- next history entry