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 ApplicationMenu
Create the menu.protected com.vaadin.flow.component.HasText
Create the component to display the "User's name" for the application.com.vaadin.flow.component.Component
getLogo()
Get the Logo (typically anImage
component) to be displayed on the "Nav Bar", next to the "drawer menu" icon.com.vaadin.flow.component.Component
Get the "menu searcher" component.com.vaadin.flow.component.html.Div
void
boolean
boolean
void
loggedin
(Application application) This method is invoked when user authentication completed.void
viewDetached
(View view) void
viewSelected
(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, toggleMenu
Methods inherited from class com.vaadin.flow.component.applayout.AppLayout
addToNavbar, addToNavbar, afterNavigation, getContent, getI18n, getPrimarySection, isDrawerOpened, isOverlay, remove, setContent, 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.storedobject.ui.ApplicationLayout
drawMenu
Methods inherited from interface com.storedobject.vaadin.ApplicationLayout
closeMenu, getCaption, getComponent, getContentHeight, getContentWidth, getMenu, openMenu, resizeContent, setCaption, setContent, toggleMenu
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
-
ApplicationFrame
public ApplicationFrame()
-
-
Method Details
-
createMenu
Description copied from class:ApplicationFrame
Create 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:
createMenu
in classApplicationFrame
- Returns:
- Menu.
-
getProgressBarHolder
public com.vaadin.flow.component.html.Div getProgressBarHolder()- Specified by:
getProgressBarHolder
in interfaceApplicationLayout
-
getMenuSearcher
public com.vaadin.flow.component.Component getMenuSearcher()Description copied from interface:ApplicationLayout
Get the "menu searcher" component.- Specified by:
getMenuSearcher
in interfaceApplicationLayout
- Returns:
- Default implementation returns
null
.
-
viewDetached
- Specified by:
viewDetached
in interfaceApplicationLayout
-
viewSelected
Description copied from class:ApplicationFrame
Closes the menu if it is displayed as an overlay.- Specified by:
viewSelected
in interfaceApplicationLayout
- Overrides:
viewSelected
in classApplicationFrame
- Parameters:
view
- Currently selected view
-
isMenuOpened
public boolean isMenuOpened()- Specified by:
isMenuOpened
in interfaceApplicationLayout
-
getLogo
public com.vaadin.flow.component.Component getLogo()Description copied from class:ApplicationFrame
Get the Logo (typically anImage
component) to be displayed on the "Nav Bar", next to the "drawer menu" icon.- Overrides:
getLogo
in classApplicationFrame
- Returns:
- Default implementation returns
null
so that no icon will be displayed.
-
loggedin
Description copied from interface:ApplicationLayout
This 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:
loggedin
in interfaceApplicationLayout
- Parameters:
application
- Application.
-
createUserNameComponent
protected com.vaadin.flow.component.HasText createUserNameComponent()Description copied from class:ApplicationFrame
Create the component to display the "User's name" for the application. This will be displayed just before the "toolbox" on the "Nav Bar".- Overrides:
createUserNameComponent
in classApplicationFrame
- Returns:
- The default implementation returns null so that a
Span
component is created automatically.
-
isMenuVisible
public boolean isMenuVisible()- Specified by:
isMenuVisible
in interfaceApplicationLayout
-
initialized
public void initialized()- Specified by:
initialized
in interfaceApplicationLayout
-