Package com.storedobject.ui.util
Class ApplicationFrame
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.applayout.AppLayout
com.storedobject.vaadin.ApplicationFrame
com.storedobject.ui.util.ApplicationFrame
- All Implemented Interfaces:
ApplicationLayout,ApplicationLayout,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
@CssImport("./so/shared-styles.css") @CssImport("./so/animation/animation.css")
public class ApplicationFrame
extends ApplicationFrame
implements ApplicationLayout
- See Also:
-
Nested Class Summary
Nested ClassesNested 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ApplicationMenuCreate the menu.protected com.vaadin.flow.component.HasTextCreate the component to display the "User's name" for the application.com.vaadin.flow.component.ComponentgetLogo()Get the Logo (typically anImagecomponent) to be displayed on the "Nav Bar", next to the "drawer menu" icon.com.vaadin.flow.component.ComponentGet the "menu searcher" component.com.vaadin.flow.component.html.Divvoidbooleanbooleanvoidloggedin(Application application) This method is invoked when user authentication completed.voidviewDetached(View view) voidviewSelected(View view) Closes the menu if it is displayed as an overlay.Methods inherited from class com.storedobject.vaadin.ApplicationFrame
addToDrawer, closeMenu, createCaptionComponent, getCaption, getCaptionComponent, getComponent, getContentHeight, getContentWidth, getDrawerToggle, getHeaderBackground, getHeaderColor, getHeaderHeight, getMenu, getToolbox, getUserNameComponent, onAttach, openMenu, resizeContent, setCaption, setDrawerOpened, toggleMenuMethods inherited from class com.vaadin.flow.component.applayout.AppLayout
addToNavbar, addToNavbar, afterNavigation, getContent, getI18n, getPrimarySection, isDrawerOpened, isOverlay, remove, setContent, 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, onDetach, 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.storedobject.ui.ApplicationLayout
drawMenuMethods inherited from interface com.storedobject.vaadin.ApplicationLayout
closeMenu, getCaption, getComponent, getContentHeight, getContentWidth, getMenu, openMenu, resizeContent, setCaption, setContent, toggleMenuMethods 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
-
Constructor Details
-
ApplicationFrame
public ApplicationFrame()
-
-
Method Details
-
createMenu
Description copied from class:ApplicationFrameCreate the menu. The component of the menu should be added to the appropriate place within this method. The default implementation adds the menu to the "drawer" area along with the "menu searcher"ApplicationLayout.getMenuSearcher()if one is available.- Overrides:
createMenuin classApplicationFrame- Returns:
- Menu.
-
getProgressBarHolder
public com.vaadin.flow.component.html.Div getProgressBarHolder()- Specified by:
getProgressBarHolderin interfaceApplicationLayout
-
getMenuSearcher
public com.vaadin.flow.component.Component getMenuSearcher()Description copied from interface:ApplicationLayoutGet the "menu searcher" component.- Specified by:
getMenuSearcherin interfaceApplicationLayout- Returns:
- Default implementation returns
null.
-
viewDetached
- Specified by:
viewDetachedin interfaceApplicationLayout
-
viewSelected
Description copied from class:ApplicationFrameCloses the menu if it is displayed as an overlay.- Specified by:
viewSelectedin interfaceApplicationLayout- Overrides:
viewSelectedin classApplicationFrame- Parameters:
view- Currently selected view
-
isMenuOpened
public boolean isMenuOpened()- Specified by:
isMenuOpenedin interfaceApplicationLayout
-
getLogo
public com.vaadin.flow.component.Component getLogo()Description copied from class:ApplicationFrameGet the Logo (typically anImagecomponent) to be displayed on the "Nav Bar", next to the "drawer menu" icon.- Overrides:
getLogoin classApplicationFrame- Returns:
- Default implementation returns
nullso that no icon will be displayed.
-
loggedin
Description copied from interface:ApplicationLayoutThis method is invoked when user authentication completed. Typically, its used to display the user names and other details in some part of the screen.- Specified by:
loggedinin interfaceApplicationLayout- Parameters:
application- Application.
-
createUserNameComponent
protected com.vaadin.flow.component.HasText createUserNameComponent()Description copied from class:ApplicationFrameCreate the component to display the "User's name" for the application. This will be displayed just before the "toolbox" on the "Nav Bar".- Overrides:
createUserNameComponentin classApplicationFrame- Returns:
- The default implementation returns null so that a
Spancomponent is created automatically.
-
isMenuVisible
public boolean isMenuVisible()- Specified by:
isMenuVisiblein interfaceApplicationLayout
-
initialized
public void initialized()- Specified by:
initializedin interfaceApplicationLayout
-