Class ApplicationView
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.applayout.AppLayout
net.tangly.app.ApplicationView
- 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
public class ApplicationView
extends com.vaadin.flow.component.applayout.AppLayout
The main view of the application is the entry point to the application. Each bounded domain with a user interface is accessible through a tab.
Vaadin creates for each tab a new instance of the bounded domain user interface.
- 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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Optional<com.vaadin.flow.component.tabs.Tab> protected voiddrawerMenu(net.tangly.core.domain.User user) Optional<net.tangly.ui.app.domain.BoundedDomainUi<?>> getBoundedDomainUi(String name) protected com.vaadin.flow.component.menubar.MenuBarmenuBar()protected voidonAttach(@NotNull com.vaadin.flow.component.AttachEvent attachEvent) protected voidonDetach(@NotNull com.vaadin.flow.component.DetachEvent detachEvent) voidregisterBoundedDomainUi(net.tangly.ui.app.domain.BoundedDomainUi<?> domain) protected final voidselectBoundedDomainUi(com.vaadin.flow.component.tabs.Tabs.SelectedChangeEvent event) protected final voidselectBoundedDomainUi(@NotNull String domainName) protected voidselectBoundedDomainUi(@NotNull net.tangly.ui.app.domain.BoundedDomainUi<?> ui) tenant()static net.tangly.core.domain.Useruser()voiduserChanged(@NotNull Tenant tenant, @NotNull net.tangly.core.domain.User user) The method is called when a user successfully logs in.static Stringusername()Methods inherited from class com.vaadin.flow.component.applayout.AppLayout
addToDrawer, addToNavbar, addToNavbar, afterNavigation, getContent, getI18n, getPrimarySection, isDrawerOpened, isOverlay, remove, setContent, setDrawerOpened, setI18n, setPrimarySection, showRouterLayoutContentMethods 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, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.router.RouterLayout
removeRouterLayoutContent
-
Field Details
-
USERNAME
- See Also:
-
USER
- See Also:
-
IMAGE_NAME
- See Also:
-
-
Constructor Details
-
ApplicationView
-
-
Method Details
-
tenant
-
userChanged
public void userChanged(@NotNull @NotNull Tenant tenant, @NotNull @NotNull net.tangly.core.domain.User user) The method is called when a user successfully logs in. Update access to bounded domains based on the user's access rights. Propagate the user change to all bounded domains.A tenant does not have to provide a logo. This case is also handled.
- Parameters:
user- newly logged-in user
-
username
-
user
public static net.tangly.core.domain.User user() -
onAttach
protected void onAttach(@NotNull @NotNull com.vaadin.flow.component.AttachEvent attachEvent) - Overrides:
onAttachin classcom.vaadin.flow.component.applayout.AppLayout
-
onDetach
protected void onDetach(@NotNull @NotNull com.vaadin.flow.component.DetachEvent detachEvent) - Overrides:
onDetachin classcom.vaadin.flow.component.Component
-
registerBoundedDomainUi
public void registerBoundedDomainUi(net.tangly.ui.app.domain.BoundedDomainUi<?> domain) -
getBoundedDomainUi
-
boundedDomainUis
-
selectBoundedDomainUi
-
selectBoundedDomainUi
protected final void selectBoundedDomainUi(com.vaadin.flow.component.tabs.Tabs.SelectedChangeEvent event) -
selectBoundedDomainUi
protected void selectBoundedDomainUi(@NotNull @NotNull net.tangly.ui.app.domain.BoundedDomainUi<?> ui) -
drawerMenu
protected void drawerMenu(net.tangly.core.domain.User user) -
domainTab
-