Package org.jboss.elemento.router
Class Place
java.lang.Object
org.jboss.elemento.router.Place
Represents a place in an application. A place is identified by a route that can have parameters, an optional title, a custom
root and an optional
LoadData
. element.
If the route has parameters, the PlaceManager
will collect it and pass it to the page when calling
Page.elements(Place, Parameter, LoadedData)
.
If the page has a LoadData
, the PlaceManager
will call it and pass the loaded data as LoadedData
to the
page when calling Page.elements(Place, Parameter, LoadedData)
.
If a title is given, the PlaceManager
will change the document title accordingly. If a custom root selector or
element is given, the PlaceManager
will replace the contents of that element with the Page
registered for
this place.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
static Place
root
(HTMLElement element) root
(Supplier<HTMLElement> root) toString()