You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.component.internal.

Class JavaScriptBootstrapUI

    • Constructor Detail

      • JavaScriptBootstrapUI

        public JavaScriptBootstrapUI()

        Create UI for client side bootstrapping.

    • Method Detail

      • getChildren

        public Stream<Component> getChildren()

        Description copied from class: Component

        Gets the child components of this component.

        The default implementation finds child components by traversing each child Element tree.

        If the component is injected to a PolymerTemplate using the @Id annotation the getChildren method will only return children added from the server side and will not return any children declared in the template file.

        Overrides:

        getChildren in class Component

        Returns:

        the child components of this component

        See Also:

        Id

      • getForwardToClientUrl

        public String getForwardToClientUrl()

        Gets the new forward url.

        Returns:

        the new forward url

      • connectClient

        @ClientCallable
        public void connectClient​(String clientElementTag,
                                  String clientElementId,
                                  String flowRoute,
                                  String appShellTitle,
                                  elemental.json.JsonValue historyState)

        Connect a client with the server side UI. This method is invoked each time client router navigates to a server route.

        Parameters:

        clientElementTag - client side element tag

        clientElementId - client side element id

        flowRoute - flow route that should be attached to the client element

        appShellTitle - client side title of the application shell

        historyState - client side history state value

      • leaveNavigation

        @ClientCallable
        public void leaveNavigation​(String route)

        Check that the view can be leave. This method is invoked when the client router tries to navigate to a client route while the current route is a server route. This is only called when client route navigates from a server to a client view.

        Parameters:

        route - the route that is navigating to.

      • navigate

        public void navigate​(String pathname,
                             QueryParameters queryParameters)

        Description copied from class: UI

        Updates this UI to show the view corresponding to the given location and query parameters. The location must be a relative path without any ".." segments.

        Besides the navigation to the location this method also updates the browser location (and page history).

        Overrides:

        navigate in class UI

        Parameters:

        pathname - the location to navigate to, not null

        queryParameters - query parameters that are used for navigation, not null

        See Also:

        UI.navigate(String), Router.navigate(UI, Location, NavigationTrigger)