com.vaadin.navigator.

Class Navigator.PushStateManager

    • Constructor Detail

      • PushStateManager

        public PushStateManager​(UI ui)

        Creates a new PushStateManager.

        Parameters:

        ui - the UI where the Navigator is attached to

    • Method Detail

      • setNavigator

        public void setNavigator​(Navigator navigator)

        Description copied from interface: NavigationStateManager

        Sets the Navigator used with this state manager. The state manager should notify the provided navigator of user-triggered navigation state changes by invoking navigator.navigateTo(getState()). navigator parameter value could be null if previously set navigator is destroyed.

        This method should only be called by a Navigator.

        Specified by:

        setNavigator in interface NavigationStateManager

      • getState

        public String getState()

        Description copied from interface: NavigationStateManager

        Returns the current navigation state including view name and any optional parameters.

        Specified by:

        getState in interface NavigationStateManager

        Returns:

        current view and parameter string, not null

      • setState

        public void setState​(String state)

        Description copied from interface: NavigationStateManager

        Sets the current navigation state in the location URI or similar location, including view name and any optional parameters.

        This method should be only called by a Navigator.

        Specified by:

        setState in interface NavigationStateManager

        Parameters:

        state - new view and parameter string, not null