Uses of Class
org.jboss.elemento.router.Place
Packages that use Place
Package
Description
Provides a minimally invasive client-side routing solution for single-page applications.
-
Uses of Place in org.jboss.elemento.router
Classes in org.jboss.elemento.router that implement interfaces with type arguments of type PlaceModifier and TypeClassDescriptionclassRepresents a collection of places in an application.Methods in org.jboss.elemento.router that return PlaceModifier and TypeMethodDescriptionPlaceManager.current()Returns the currentPlaceinstance being managed by the PlaceManager.static PlacePlace.root(HTMLElement element) Place.root(Supplier<HTMLElement> root) Methods in org.jboss.elemento.router that return types with arguments of type PlaceModifier and TypeMethodDescriptionPlaces.iterator()PlaceManager.places()Returns an unmodifiable list of all registered places.Methods in org.jboss.elemento.router with parameters of type PlaceModifier and TypeMethodDescriptionAdds a Place and the corresponding page supplier to the collection of places.voidAfterPlaceHandler.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)returnedtruePage.elements(Place place, Parameter parameter, LoadedData data) elemental2.promise.Promise<T> Loads data for a given place using a specified parameter.Assigns a given loader for a specific place.Registers a new place and its associated page supplier with the place manager.default booleanBeforePlaceHandler.shouldGoTo(PlaceManager placeManager, Place place) Default implementation returnstrueMethod parameters in org.jboss.elemento.router with type arguments of type PlaceModifier and TypeMethodDescriptionPlaceManager.errorPage(BiFunction<Place, String, Page> errorPage) Sets the callback function to handle error scenarios.Sets the callback function to handle cases where no matching place is found.