Class ContextMenu


  • @ApplicationScoped
    public class ContextMenu
    extends Object
    • Method Detail

      • 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()
      • resetMenuItems

        public void resetMenuItems()
      • setHeaderMenu

        public void setHeaderMenu​(String title,
                                  String iconClass)
      • addTextMenuItem

        public void addTextMenuItem​(String itemName,
                                    boolean isEnabled,
                                    org.uberfire.mvp.Command command)