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.UIProviderManagesAbstractMprUIinstances in the application. It uses theuirequest parameter as the key to store UI instances in the session, so it can be accessed by Flow.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractMprUIProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.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)
-
-
-
Method Detail
-
createInstance
public com.vaadin.ui.UI createInstance(com.vaadin.server.UICreateEvent event)
- Overrides:
createInstancein classcom.vaadin.server.UIProvider
-
getUIClass
public Class<? extends com.vaadin.ui.UI> getUIClass(com.vaadin.server.UIClassSelectionEvent event)
- Specified by:
getUIClassin classcom.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
-
-