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 classstatic classDescribes menu item that should navigate to the view.Nested classes/interfaces inherited from class io.jmix.flowui.kit.component.main.ListMenu
ListMenu.MenuBarItem, ListMenu.MenuItem, ListMenu.MenuSeparatorItem -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected UiComponentsprotected ViewRegistryFields inherited from class io.jmix.flowui.kit.component.main.ListMenu
FLEX_CLASS_NAME, FONT_MEDIUM_CLASS_NAME, JMIX_LIST_MENU_CLASS_NAME, JMIX_MENU_ITEM_LINK_CLASS_NAME, JMIX_MENUBAR_ITEM_CLASS_NAME, JMIX_MENUBAR_SUMMARY_ICON_CONTAINER_CLASS_NAME, LINK_ICON_CLASS_NAME, LINK_TEXT_CLASS_NAME, LIST_NONE_CLASS_NAME, MARGIN_NONE_CLASS_NAME, MENUBAR_ICON_CLASS_NAME, MENUBAR_LIST_CLASS_NAME, MENUBAR_SUMMARY_CLASS_NAME, menuItemPropertyChangeListener, PADDING_NONE_CLASS_NAME, registrations, rootMenuItems, TEXT_SMALL_CLASS_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) getControllerClass(JmixListMenu.ViewMenuItem menuItem) protected voidprotected booleanisSupportedView(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, addMenuItemClickShortcutCombination, attachMenuItemRecursively, checkItemIdDuplicate, createMenuBarComponent, createMenuRecursively, detachMenuItemRecursively, getMenuBarComponent, getMenuBarContent, getMenuBarContent, getMenuItem, getMenuItems, getTitle, initContent, onMenuItemPropertyChange, 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, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, 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
-
viewRegistry
-
-
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
-
isSupportedView
-