Class RouteNavUtils
java.lang.Object
org.vaadin.addons.joelpop.appnavlayout.ui.nav.RouteNavUtils
Stateless helpers for navigating the route hierarchy.
@Menu titles are leaf-only display names; all structural logic
(depth, grouping, prefix matching) uses the @Route template path.-
Method Summary
Modifier and TypeMethodDescriptionstatic StringleafTitle(com.vaadin.flow.server.menu.MenuEntry entry) ReturnsMenuEntry.title()as the leaf display name — already resolved byMenuConfiguration.getMenuEntries()itself (falling back through@PageTitleto the class name), so this doesn't add a fallback of its own.static StringnormalizedPath(com.vaadin.flow.server.menu.MenuEntry entry) Returns the path from aMenuEntrywith any leading/stripped, matching the format returned byLocation.getPath().pathSegments(String routePath) Returns the path segments of a route path as an immutable list.static StringrouteSegmentLabel(String segment) Converts a URL route segment to a human-readable label by capitalising each hyphen-delimited word.
-
Method Details
-
pathSegments
-
routeSegmentLabel
-