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
Nested ClassesModifier and TypeClassDescriptionstatic classDescribes 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
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected ScreenRegistryprotected UiComponentsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddMenuItemClickListener(com.vaadin.flow.router.RouterLink routerLink, ListMenu.MenuItem menuItem) voidprotected voidprotected com.vaadin.flow.router.RouterLinkcreateMenuItemComponent(ListMenu.MenuItem menuItem) protected voidprotected booleanisSupportedScreen(Class<?> targetView) voidLoads menu items fromMenuConfig.voidsetApplicationContext(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, unregisterMenuItemRecursivelyMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods 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, 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.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullMethods 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:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin 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:
createMenuItemComponentin classListMenu
-
addMenuItemClickListener
protected void addMenuItemClickListener(com.vaadin.flow.router.RouterLink routerLink, ListMenu.MenuItem menuItem) - Overrides:
addMenuItemClickListenerin classListMenu
-
getControllerClass
-
isSupportedScreen
-