@ApplicationScoped public class ContextMenu extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ContextMenu.View |
| Constructor and Description |
|---|
ContextMenu(ContextMenu.View view) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTextMenuItem(String itemName,
boolean isEnabled,
org.uberfire.mvp.Command command) |
elemental2.dom.HTMLElement |
getElement() |
List<HasListSelectorControl.ListSelectorItem> |
getItems() |
void |
hide() |
void |
init() |
void |
resetMenuItems() |
void |
setHeaderMenu(String title,
String iconClass) |
void |
show() |
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
|
@Inject public ContextMenu(ContextMenu.View view)
@PostConstruct public void init()
public void show()
public void show(Consumer<ContextMenu> contextMenuConsumer)
contextMenuConsumer - whatever function that takes as argument the contextMenu itself and returns nothingpublic void hide()
public elemental2.dom.HTMLElement getElement()
public List<HasListSelectorControl.ListSelectorItem> getItems()
public void resetMenuItems()
public void addTextMenuItem(String itemName, boolean isEnabled, org.uberfire.mvp.Command command)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.