T - View that is wrapped and shown@Tag(value="div") public abstract class AbstractMprRouteAdapter<T extends com.vaadin.navigator.View> extends com.vaadin.flow.component.Component implements com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.HasSize, com.vaadin.flow.router.AfterNavigationObserver, com.vaadin.flow.router.HasUrlParameter<String>
Route without any Navigator
involvement.| Constructor and Description |
|---|
AbstractMprRouteAdapter()
Route adapter constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterNavigation(com.vaadin.flow.router.AfterNavigationEvent afterNavigationEvent) |
protected T |
createInstance(Class<?> viewClass) |
protected abstract AbstractLegacyWrapper |
getLegacyWrapper(com.vaadin.ui.Component view) |
T |
getViewComponent()
Gets the
View associated with this Route Adapter |
protected abstract com.vaadin.ui.Component |
getViewComponent(com.vaadin.navigator.View view)
Gets the actual component that should be rendered for the specified View.
|
protected void |
init() |
void |
setParameter(com.vaadin.flow.router.BeforeEvent beforeEvent,
String parameters) |
protected void |
setViewComponent(T viewComponent) |
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, add, addComponentAsFirst, addComponentAtIndex, remove, removeAllgetCssSize, getHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullpublic AbstractMprRouteAdapter()
View will be constructed and added as a LegacyWrapper component to the Adapter element.
protected void init()
protected void setViewComponent(T viewComponent)
public T getViewComponent()
View associated with this Route Adapterprotected abstract com.vaadin.ui.Component getViewComponent(com.vaadin.navigator.View view)
view - the input viewprotected abstract AbstractLegacyWrapper getLegacyWrapper(com.vaadin.ui.Component view)
public void afterNavigation(com.vaadin.flow.router.AfterNavigationEvent afterNavigationEvent)
afterNavigation in interface com.vaadin.flow.router.internal.AfterNavigationHandlerCopyright © 2018–2020 Vaadin Ltd. All rights reserved.