Package io.jmix.flowui.component.main
Class JmixListMenu
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.html.UnorderedList>
io.jmix.flowui.kit.component.main.ListMenu
io.jmix.flowui.component.main.JmixListMenu
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.DetachNotifier
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasSize
,com.vaadin.flow.component.HasStyle
,Serializable
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
public class JmixListMenu
extends ListMenu
implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Describes menu item that should navigate to the screen.Nested classes/interfaces inherited from class io.jmix.flowui.kit.component.main.ListMenu
ListMenu.MenuBarItem, ListMenu.MenuItem
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected ScreenRegistry
protected UiComponents
Fields inherited from class io.jmix.flowui.kit.component.main.ListMenu
FLEX_STYLE_NAME, FONT_MEDIUM_STYLE_NAME, JMIX_LIST_MENU_STYLE_NAME, JMIX_MENU_ITEM_LINK_STYLE_NAME, JMIX_MENUBAR_ITEM_STYLE_NAME, JMIX_MENUBAR_SUMMARY_ICON_CONTAINER_STYLE_NAME, LINK_ICON_STYLE_NAME, LINK_TEXT_STYLE_NAME, LIST_NONE_STYLE_NAME, MARGIN_NONE_STYLE_NAME, MENUBAR_ICON_STYLE_NAME, MENUBAR_LIST_STYLE_NAME, MENUBAR_SUMMARY_STYLE_NAME, PADDING_NONE_STYLE_NAME, registrations, rootMenuItems, TEXT_SMALL_STYLE_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addMenuItemClickListener
(com.vaadin.flow.router.RouterLink routerLink, ListMenu.MenuItem menuItem) void
protected void
protected com.vaadin.flow.router.RouterLink
createMenuItemComponent
(ListMenu.MenuItem menuItem) protected void
protected boolean
isSupportedScreen
(Class<?> targetView) void
Loads menu items fromMenuConfig
.void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) Methods inherited from class io.jmix.flowui.kit.component.main.ListMenu
addChildren, addChildren, addMenuItem, addMenuItem, attachMenuItemRecursively, checkItemIdDuplicate, createMenuBarComponent, createMenuRecursively, detachMenuItemRecursively, getMenuBarContent, getMenuBarContent, getMenuItem, getMenuItems, getTitle, initContent, registerMenuItem, removeAllMenuItems, removeMenuItem, removeMenuItem, unregisterMenuItemRecursively
Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement
Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, 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.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
uiComponents
-
screenRegistry
-
-
Constructor Details
-
JmixListMenu
public JmixListMenu()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
autowireDependencies
protected void autowireDependencies() -
initComponent
protected void initComponent() -
loadMenuConfig
public void loadMenuConfig()Loads menu items fromMenuConfig
. -
createMenuItemComponent
- Overrides:
createMenuItemComponent
in classListMenu
-
addMenuItemClickListener
protected void addMenuItemClickListener(com.vaadin.flow.router.RouterLink routerLink, ListMenu.MenuItem menuItem) - Overrides:
addMenuItemClickListener
in classListMenu
-
getControllerClass
-
isSupportedScreen
-