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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Optional
<com.vaadin.flow.component.tabs.Tab> protected void
drawerMenu
(net.tangly.core.domain.User user) Optional
<net.tangly.ui.app.domain.BoundedDomainUi<?>> getBoundedDomainUi
(String name) protected com.vaadin.flow.component.menubar.MenuBar
menuBar()
protected void
onAttach
(@NotNull com.vaadin.flow.component.AttachEvent attachEvent) protected void
onDetach
(@NotNull com.vaadin.flow.component.DetachEvent detachEvent) void
registerBoundedDomainUi
(net.tangly.ui.app.domain.BoundedDomainUi<?> domain) protected final void
selectBoundedDomainUi
(com.vaadin.flow.component.tabs.Tabs.SelectedChangeEvent event) protected final void
selectBoundedDomainUi
(@NotNull String domainName) protected void
selectBoundedDomainUi
(@NotNull net.tangly.ui.app.domain.BoundedDomainUi<?> ui) tenant()
static net.tangly.core.domain.User
user()
void
userChanged
(@NotNull Tenant tenant, @NotNull net.tangly.core.domain.User user) The method is called when a user successfully logs in.static String
username()
Methods inherited from class com.vaadin.flow.component.applayout.AppLayout
addToDrawer, addToNavbar, addToNavbar, afterNavigation, getContent, getI18n, getPrimarySection, isDrawerOpened, isOverlay, remove, setContent, 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, 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
-
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:
onAttach
in classcom.vaadin.flow.component.applayout.AppLayout
-
onDetach
protected void onDetach(@NotNull @NotNull com.vaadin.flow.component.DetachEvent detachEvent) - Overrides:
onDetach
in 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
-