Uses of Class
org.jboss.elemento.router.PlaceManager
Packages that use PlaceManager
Package
Description
Provides a minimally invasive client-side routing solution for single-page applications.
-
Uses of PlaceManager in org.jboss.elemento.router
Methods in org.jboss.elemento.router that return PlaceManagerModifier and TypeMethodDescriptionPlaceManager.afterPlace(AfterPlaceHandler afterPlace) Registers a handler to be executed after a place transition occurs.The base URL for all locations.PlaceManager.beforePlace(BeforePlaceHandler beforePlace) Registers a handler that is executed before a place transition occurs.PlaceManager.errorPage(BiFunction<Place, String, Page> errorPage) Sets the callback function to handle error scenarios.PlaceManager.linkSelector(String selector) Sets the link selector for selecting links that should be monitored by this place manager.PlaceManager.linkSelector(String selector, boolean not) Sets the link selector for selecting links that should be monitored by this place manager.PlaceManager.linkSelector(By selector) Sets the link selector for links that should be monitored by this place manager.PlaceManager.linkSelector(By selector, boolean not) Sets the link selector for links that should be monitored by this place manager.Sets the callback function to handle cases where no data is available for a given place.Sets the callback function to handle cases where no matching place is found.Registers a new place and its associated page supplier with the place manager.Registers a collection of places and their associated page suppliers with the PlaceManager.PlaceManager.root(HTMLElement element) Sets the root HTMLElement for the application's UI.Sets the root HTMLElement for the application's UI using a CSS selector.PlaceManager.root(Supplier<HTMLElement> root) Sets the root HTMLElement for the application's UI using a supplier.Sets the root HTMLElement for the application's UI using aByselector.Sets the function to resolve or modify the title for the current place or page.Methods in org.jboss.elemento.router with parameters of type PlaceManagerModifier and TypeMethodDescriptionvoidAfterPlaceHandler.afterPlace(PlaceManager placeManager, Place place) Executes the specified actions after a place is changed.voidBeforePlaceHandler.beforePlace(PlaceManager placeManager, Place place) Called ifBeforePlaceHandler.shouldGoTo(PlaceManager, Place)returnedtruestatic LinkLink.link(PlaceManager placeManager, String route) Creates a new Link instance based on the given PlaceManager and route.static LinkLink.link(PlaceManager placeManager, String route, String... values) Creates a new Link instance for a route with parameter values.default booleanBeforePlaceHandler.shouldGoTo(PlaceManager placeManager, Place place) Default implementation returnstrue