Class AbstractMprUIProvider

  • All Implemented Interfaces:
    Serializable

    public abstract class AbstractMprUIProvider
    extends com.vaadin.server.UIProvider
    Manages AbstractMprUI instances in the application. It uses the ui request parameter as the key to store UI instances in the session, so it can be accessed by Flow.
    See Also:
    Serialized Form
    • Constructor Detail

      • AbstractMprUIProvider

        public AbstractMprUIProvider()
    • Method Detail

      • createInstance

        public com.vaadin.ui.UI createInstance​(com.vaadin.server.UICreateEvent event)
        Overrides:
        createInstance in class com.vaadin.server.UIProvider
      • getUIClass

        public Class<? extends com.vaadin.ui.UI> getUIClass​(com.vaadin.server.UIClassSelectionEvent event)
        Specified by:
        getUIClass in class com.vaadin.server.UIProvider
      • getMprUI

        protected AbstractMprUI getMprUI​(com.vaadin.flow.component.UI flowUi)
      • getLegacyUI

        public static AbstractMprUI getLegacyUI​(com.vaadin.flow.component.UI flowUi)
        Get the legacy Vaadin UI instance that should be used if annotation exists.
        Parameters:
        flowUi - Current Flow UI or null if none exists
        Returns:
        MprUI instance to use as the legacy UI