Uses of Record Class
com.vaadin.swingbridge.surrogates.MenuNode
Packages that use MenuNode
-
Uses of MenuNode in com.vaadin.swingbridge.surrogates
Methods in com.vaadin.swingbridge.surrogates that return MenuNodeModifier and TypeMethodDescriptionstatic MenuNodeConvenience: a leafJMenuItem-shape node with text + enabled + onClick.static MenuNodeConvenience: aJMenu-shape node with text + enabled + children.static MenuNodeMenuNode.ofSeparator()Convenience: a separator node — only the separator flag is meaningful.Methods in com.vaadin.swingbridge.surrogates that return types with arguments of type MenuNodeModifier and TypeMethodDescriptionMenuNode.children()Returns the value of thechildrenrecord component.SJMenuBar.getCurrentTree()Convenience accessor for tests + diagnostics — returns the most recently pushedMenuNodesnapshot.SJPopupMenu.getCurrentTree()Convenience accessor for tests + diagnostics — the most recently pushedMenuNodesnapshot (immutable copy).Method parameters in com.vaadin.swingbridge.surrogates with type arguments of type MenuNodeModifier and TypeMethodDescriptionstatic MenuNodeConvenience: aJMenu-shape node with text + enabled + children.voidSJMenuBar.rebuildFromTree(List<MenuNode> tree) Push a fresh JDK menu-tree snapshot through to the Vaadin MenuBar.voidSJPopupMenu.rebuildFromTree(List<MenuNode> tree) Push a fresh JDK menu-tree snapshot through to the VaadinContextMenu.Constructor parameters in com.vaadin.swingbridge.surrogates with type arguments of type MenuNode -
Uses of MenuNode in com.vaadin.swingbridge.surrogates.internal
Fields in com.vaadin.swingbridge.surrogates.internal with type parameters of type MenuNodeModifier and TypeFieldDescriptionMenuBarStateStore.currentTreeLast snapshot pushed viarebuildFromTree; empty at construction.Method parameters in com.vaadin.swingbridge.surrogates.internal with type arguments of type MenuNodeModifier and TypeMethodDescriptionstatic voidMenuTreeBuilder.installAccelerators(com.vaadin.flow.component.UI ui, com.vaadin.flow.component.Component owner, Map<MenuNode, com.vaadin.flow.component.contextmenu.MenuItem> leafToPeer, Map<KeyStroke, com.vaadin.flow.shared.Registration> registrations) Install a UI-scoped Vaadin shortcut for every leaf node carrying an accelerator.static booleanMenuTreeBuilder.patchInPlace(List<MenuNode> current, List<MenuNode> next, List<com.vaadin.flow.component.contextmenu.MenuItem> peers) Appliesnextto the itemscurrentbuilt, without rebuilding, when the two trees differ only in checked states, click handlers or accelerators.static voidMenuTreeBuilder.rebuild(com.vaadin.flow.component.contextmenu.HasMenuItems root, List<MenuNode> tree, Consumer<MenuNode> topSeparator) Walktreeintoroot.static voidMenuTreeBuilder.rebuild(com.vaadin.flow.component.contextmenu.HasMenuItems root, List<MenuNode> tree, Consumer<MenuNode> topSeparator) Walktreeintoroot.static voidMenuTreeBuilder.recoverLeafMap(List<MenuNode> nodes, List<com.vaadin.flow.component.contextmenu.MenuItem> peers, Map<MenuNode, com.vaadin.flow.component.contextmenu.MenuItem> map) Walk parallel JDKMenuNodeand VaadinMenuItemtrees to recover the leaf-to-peer map after attach (the original rebuild'sMenuItemreferences aren't addressable later).static voidMenuTreeBuilder.recoverLeafMap(List<MenuNode> nodes, List<com.vaadin.flow.component.contextmenu.MenuItem> peers, Map<MenuNode, com.vaadin.flow.component.contextmenu.MenuItem> map) Walk parallel JDKMenuNodeand VaadinMenuItemtrees to recover the leaf-to-peer map after attach (the original rebuild'sMenuItemreferences aren't addressable later).