com.vaadin.navigator.

Interface ViewProvider

    • Method Summary

      All Methods
      Modifier and Type Method Description
      View getView​(String viewName)

      Create or return a pre-created instance of a view.

      String getViewName​(String viewAndParameters)

      Extract the view name from a combined view name and parameter string.

    • Method Detail

      • getViewName

        String getViewName​(String viewAndParameters)

        Extract the view name from a combined view name and parameter string. This method should return a view name if and only if this provider handles creation of such views.

        Parameters:

        viewAndParameters - string with view name and its fragment parameters (if given), not null

        Returns:

        view name if the view is handled by this provider, null otherwise

      • getView

        View getView​(String viewName)

        Create or return a pre-created instance of a view. The parameters for the view are set separately by the navigator when the view is activated.

        Parameters:

        viewName - name of the view, not null

        Returns:

        newly created view (null if none available for the view name)