Skip navigation links

@NonNullByDefault

Package ej.navigation

Navigation Framework for building multi-screen MicroEJ applications.

See: Description

Package ej.navigation Description

Navigation Framework for building multi-screen MicroEJ applications.

An application models each screen as a Page and identifies it by a non-negative int key. A single PageFactory builds the page for a key on demand. The Navigator is a singleton: the application initializes it once with the Desktop it drives and that factory (Navigator.initialize(ej.mwt.Desktop, ej.navigation.PageFactory)), then obtains it with Navigator.getInstance(). The navigator owns a multi-level navigation history and drives that single MicroUI Desktop: it navigates with Navigator.navigateTo(int) / Navigator.navigateBack() / Navigator.navigateBackTo(int), and can replace the active page in place with Navigator.replaceWith(int) (which discards the replaced page). Every change is animated with a Transition. Pages receive lifecycle callbacks, and navigation events are reported to registered NavigationListener instances.

Skip navigation links