Class ContextMenu
- java.lang.Object
-
- org.kie.workbench.common.dmn.client.editors.contextmenu.ContextMenu
-
@ApplicationScoped public class ContextMenu extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceContextMenu.View
-
Constructor Summary
Constructors Constructor Description ContextMenu(ContextMenu.View view)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTextMenuItem(String itemName, boolean isEnabled, org.uberfire.mvp.Command command)elemental2.dom.HTMLElementgetElement()List<HasListSelectorControl.ListSelectorItem>getItems()voidhide()voidinit()voidresetMenuItems()voidsetHeaderMenu(String title, String iconClass)voidshow()voidshow(Consumer<ContextMenu> contextMenuConsumer)This overloaded version of show method accepts a lambda with a series of operations to be performed before showing the context menu
-
-
-
Constructor Detail
-
ContextMenu
@Inject public ContextMenu(ContextMenu.View view)
-
-
Method Detail
-
init
@PostConstruct public void init()
-
show
public void show()
-
show
public void show(Consumer<ContextMenu> contextMenuConsumer)
This overloaded version of show method accepts a lambda with a series of operations to be performed before showing the context menu- Parameters:
contextMenuConsumer- whatever function that takes as argument the contextMenu itself and returns nothing
-
hide
public void hide()
-
getElement
public elemental2.dom.HTMLElement getElement()
-
getItems
public List<HasListSelectorControl.ListSelectorItem> getItems()
-
resetMenuItems
public void resetMenuItems()
-
addTextMenuItem
public void addTextMenuItem(String itemName, boolean isEnabled, org.uberfire.mvp.Command command)
-
-