Class Navigation
java.lang.Object
com.codename1.router.Navigation
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanback()Pop the top entry off the navigation stack and return to the previous one.static booleanDispatch a URL delivered by the platform.static NavigationEntryThe current entry (top of stack), or null when the stack is empty.static List<NavigationEntry> getStack()Unmodifiable snapshot of the navigation stack, oldest entry first (breadcrumb order).static booleanNavigate to a path.static booleanpopTo(NavigationEntry entry) Pop entries untilentryis on top, then show its form viaForm#showBack.static voidInstalls the build-time-generated route dispatcher.
-
Method Details
-
setDispatcher
Installs the build-time-generated route dispatcher. Invoked once bycom.codename1.router.generated.Routes#bootstrapduring framework initialization. Application code should not call this. -
back
public static boolean back()Pop the top entry off the navigation stack and return to the previous one. UsesForm#showBackso the transition runs in reverse. Returnstruewhen a frame was popped,falsewhen the stack had at most one entry (already at the root, nothing to go back to). -
getCurrent
The current entry (top of stack), or null when the stack is empty. -
getStack
Unmodifiable snapshot of the navigation stack, oldest entry first (breadcrumb order). The list is a copy: mutating navigations after the call do not affect it. -
dispatchExternalUrl
Dispatch a URL delivered by the platform. Invoked bycom.codename1.ui.Display#setProperty(String, String)for URL-shapedAppArgvalues; applications should call#navigate(String)instead.
-