Package io.jmix.flowui.app.main
Class StandardMainView
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.DetachNotifier
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasStyle
,com.vaadin.flow.router.AfterNavigationObserver
,com.vaadin.flow.router.BeforeEnterObserver
,com.vaadin.flow.router.BeforeLeaveObserver
,com.vaadin.flow.router.HasDynamicTitle
,com.vaadin.flow.router.internal.AfterNavigationHandler
,com.vaadin.flow.router.internal.BeforeEnterHandler
,com.vaadin.flow.router.internal.BeforeLeaveHandler
,com.vaadin.flow.router.RouterLayout
,Serializable
public class StandardMainView
extends View<JmixAppLayout>
implements com.vaadin.flow.router.RouterLayout
Base class of main views containing
AppLayout
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.view.View
View.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.QueryParametersChangeEvent, View.ReadyEvent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterNavigation
(com.vaadin.flow.router.AfterNavigationEvent event) com.vaadin.flow.component.Component
protected Optional<com.vaadin.flow.component.Component>
protected String
void
setInitialLayout
(com.vaadin.flow.component.Component initialLayout) Sets a component that is displayed if no view is opened.void
showRouterLayoutContent
(com.vaadin.flow.component.HasElement content) protected void
Methods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, beforeEnter, beforeLeave, close, close, closeWithDefaultAction, getApplicationContext, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onDetach, setApplicationContext, setId, setMeterRegistry, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets
Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement, initContent
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getEventBus, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
Methods inherited from interface com.vaadin.flow.router.RouterLayout
removeRouterLayoutContent
-
Constructor Details
-
StandardMainView
public StandardMainView()
-
-
Method Details
-
showRouterLayoutContent
public void showRouterLayoutContent(@Nullable com.vaadin.flow.component.HasElement content) - Specified by:
showRouterLayoutContent
in interfacecom.vaadin.flow.router.RouterLayout
-
updateTitle
protected void updateTitle() -
getTitleComponent
-
getTitleFromOpenedView
-
getInitialLayout
@Nullable public com.vaadin.flow.component.Component getInitialLayout()- Returns:
- a component that is displayed if no view is opened.
-
setInitialLayout
public void setInitialLayout(@Nullable com.vaadin.flow.component.Component initialLayout) Sets a component that is displayed if no view is opened.- Parameters:
initialLayout
- a component to display- See Also:
-