public interface Transition
A transition is a parameterized object, not an enum constant, so an application can configure the
shipped transitions (SlideTransition, FadeTransition) or supply its own. The
instant transition IMMEDIATE performs no animation and is the
Navigator's initial default.
run(TransitionContext, TransitionListener) is called on the MicroUI thread after the
navigation has been committed. The transition animates using the TransitionContext
primitives and must call TransitionListener.onTransitionEnd() exactly once when it
finishes.
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_DURATION_MILLIS
Default duration of the shipped animated transitions (
FadeTransition,
SlideTransition), in milliseconds. |
static Transition |
IMMEDIATE
The instant transition: the incoming content replaces the outgoing content in a single frame.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run(TransitionContext context,
TransitionListener listener)
Animates the page change described by the given context.
|
static final int DEFAULT_DURATION_MILLIS
FadeTransition,
SlideTransition), in milliseconds.static final Transition IMMEDIATE
This is the Navigator's initial default transition; it reproduces a
non-animated page change. It performs no animation and signals completion synchronously, so
the outgoing content is detached immediately.
void run(TransitionContext context, TransitionListener listener)
Called on the MicroUI thread once per navigation. The implementation must call
TransitionListener.onTransitionEnd() exactly once when the animation is finished.
context - the stage exposing the contents, the content area size, and the animation primitives.listener - the listener to notify once, when the transition finishes.