Package com.vaadin.flow.router
Interface HasDynamicTitle
- All Superinterfaces:
Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Allows to resolve navigation target title dynamically at runtime, based on
the live state of the navigation target instance.
NOTE: It is not legal for a class to both implement HasDynamicTitle
and have a PageTitle annotation.
Since this is resolved from the navigation target instance, it can only
produce a title for a route that is actually shown. To resolve a title
without an instance — for example for routes that are not
shown, such as the entries of a breadcrumb trail or a menu — use the
instance-free counterpart DynamicPageTitle together with a
PageTitleGenerator.
- Since:
- 1.0.
- Author:
- Vaadin Ltd
-
Method Summary
Modifier and TypeMethodDescriptionGets the title of this navigation target.
-
Method Details
-
getPageTitle
String getPageTitle()Gets the title of this navigation target.- Returns:
- the title of this navigation target
-