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.

@FunctionalInterface public interface HasDynamicTitle extends Serializable
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 Type
    Method
    Description
    Gets 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