Package com.vaadin.mpr.core
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 -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.ui.UIcreateInstance(com.vaadin.server.UICreateEvent event) static AbstractMprUIgetLegacyUI(com.vaadin.flow.component.UI flowUi) Get the legacy Vaadin UI instance that should be used if annotation exists.protected AbstractMprUIgetMprUI(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
-
Constructor Details
-
AbstractMprUIProvider
public AbstractMprUIProvider()
-
-
Method Details
-
createInstance
public com.vaadin.ui.UI createInstance(com.vaadin.server.UICreateEvent event) - Overrides:
createInstancein classcom.vaadin.server.UIProvider
-
getUIClass
- Specified by:
getUIClassin classcom.vaadin.server.UIProvider
-
getMprUI
-
getLegacyUI
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
-