Package org.vaadin.firitin.appframework
Class VAppLayout
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.applayout.AppLayout
org.vaadin.firitin.appframework.VAppLayout
- 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.RouterLayout
,Serializable
- Direct Known Subclasses:
MainLayout
public abstract class VAppLayout
extends com.vaadin.flow.component.applayout.AppLayout
Opinionated helpers and defaults for Vaadin
AppLayout
. Provides subviews and
a slot for view specific components in navbar (will be automatically cleaned up on navigation).- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.flow.component.applayout.AppLayout
com.vaadin.flow.component.applayout.AppLayout.AppLayoutI18n, com.vaadin.flow.component.applayout.AppLayout.Section
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.vaadin.flow.component.orderedlayout.HorizontalLayout
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
addNavbarHelper
(com.vaadin.flow.component.Component component) Places a component by the view to the navbar.protected void
void
void
closeSubView
(com.vaadin.flow.component.Component component) com.vaadin.flow.component.html.Footer
protected abstract Object
getMenu()
com.vaadin.flow.component.orderedlayout.Scroller
protected com.vaadin.flow.component.HasComponents
com.vaadin.flow.component.HasText
void
openSubView
(com.vaadin.flow.component.Component component) void
openSubView
(com.vaadin.flow.component.Component component, String viewTitle) protected com.vaadin.flow.component.html.Footer
Deprecated.protected AdvancedSideNav
Deprecated, for removal: This API element is subject to removal in a future version.void
setContent
(com.vaadin.flow.component.Component content) void
setViewTitle
(String title) Manually override the current view title.protected void
Methods inherited from class com.vaadin.flow.component.applayout.AppLayout
addToDrawer, addToNavbar, addToNavbar, getContent, getI18n, getPrimarySection, isDrawerOpened, isOverlay, onAttach, remove, setDrawerOpened, setI18n, setPrimarySection, showRouterLayoutContent
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, 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
-
Field Details
-
Constructor Details
-
VAppLayout
public VAppLayout()
-
-
Method Details
-
getDrawerHeader
- Returns:
- a
Component
to show as "drawer header" or a simple string.
-
addDrawerContent
protected void addDrawerContent() -
getMenu
-
getMenuScroller
public com.vaadin.flow.component.orderedlayout.Scroller getMenuScroller() -
setViewTitle
Manually override the current view title.- Parameters:
title
- the title to set
-
getViewTitle
public com.vaadin.flow.component.HasText getViewTitle() -
updateViewTitle
protected void updateViewTitle() -
setContent
public void setContent(com.vaadin.flow.component.Component content) - Overrides:
setContent
in classcom.vaadin.flow.component.applayout.AppLayout
-
openSubView
-
openSubView
public void openSubView(com.vaadin.flow.component.Component component) -
closeSubView
public void closeSubView(com.vaadin.flow.component.Component component) -
closeSubView
public void closeSubView()
-