All Implemented Interfaces:
TagBase, GlobalAttributable, Serializable, Cloneable

public class ContextMenu extends AbstractAttribute implements GlobalAttributable
<element contextmenu="menu_id">

 The contextmenu attribute specifies a context menu for an element. The context menu appears when a user right-clicks on the element.

 The value of the contextmenu attribute is the id of the <menu> element to open.

 
See Also:
  • Constructor Details

    • ContextMenu

      public ContextMenu(String menuId)
      Parameters:
      menuId -
      Since:
      1.0.0
  • Method Details

    • init

      protected void init()
      invokes only once per object
      Since:
      1.0.0
    • getMenuId

      public String getMenuId()
      Returns:
      the menuId
      Since:
      1.0.0
    • setMenuId

      public void setMenuId(String menuId)
      Parameters:
      menuId - the menuId to set
      Since:
      1.0.0