Class AbstractMprUIProvider

java.lang.Object
com.vaadin.server.UIProvider
com.vaadin.mpr.core.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:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.vaadin.ui.UI
    createInstance(com.vaadin.server.UICreateEvent event)
     
    getLegacyUI(com.vaadin.flow.component.UI flowUi)
    Get the legacy Vaadin UI instance that should be used if annotation exists.
    protected AbstractMprUI
    getMprUI(com.vaadin.flow.component.UI flowUi)
     
    Class<? extends com.vaadin.ui.UI>
    getUIClass(com.vaadin.server.UIClassSelectionEvent event)
     

    Methods inherited from class com.vaadin.server.UIProvider

    getAnnotationFor, getPageTitle, getPushMode, getPushTransport, getTheme, getWidgetset, getWidgetsetInfo, isPreservedOnRefresh

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractMprUIProvider

      public AbstractMprUIProvider()
  • Method Details

    • 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