P - The type of the target page ("to page")public final class TransitionTo<P> extends Object
PageNodes are the nodes and
PageTransitions are the edges.
Instances of this class are normally obtained via dependency injection.
Instances of this class are immutable.
| Constructor and Description |
|---|
TransitionTo(Class<P> toPage,
Navigation navigation)
Creates a new PageTransition with the given attributes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
go()
Transitions the application's view from the current page (whatever it is) to the
toPage
of this transition, passing no extra state information. |
void |
go(Multimap<String,String> state)
Transitions the application's view from the current page (whatever it is) to the
toPage
of this transition, passing the given extra state information. |
Class<P> |
toPageType()
The page this transition goes to.
|
public TransitionTo(Class<P> toPage, Navigation navigation)
navigation - The navigation system this page transition participates in.toPage - The page type this transition goes to. Not null.NullPointerException - if any of the arguments are null.public void go()
toPage
of this transition, passing no extra state information.
Note: if the Navigation framework is being used together with ErraiIOC in asynchronous mode, the page transition may not have happened by the time this method returns.
public void go(Multimap<String,String> state)
toPage
of this transition, passing the given extra state information.
Note: if the Navigation framework is being used together with ErraiIOC in asynchronous mode, the page transition may not have happened by the time this method returns.
state - Extra state information that should be passed to the page before it is displayed.
Must not be null.Copyright © 2020 Treblereel. All rights reserved.