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.voidforward(NavigationState navigationState) Adds new history entry.getNext()getNow()booleanhas(NavigationState navigationState) Checks whether history has the given entry.booleanreplace(NavigationState navigationState) Replaces current state by the new one.booleansearchBackward(NavigationState navigationState) Performs search for the given history entry in the past.booleansearchForward(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