ilog.webui.dhtml.components

Class IlxWPopupMenu

  • All Implemented Interfaces:
    ilog.webui.dhtml.IlxWConstants, ilog.webui.dhtml.IlxWCSSModelProvider, ilog.webui.dhtml.IlxWDependencyProvider, ilog.webui.dhtml.IlxWJSObject, java.io.Serializable


    public class IlxWPopupMenu
    extends ilog.webui.dhtml.components.IlxWMenuHolder
    An implementation of a popup menu. A popup menu contains a set of menus that can be added with the add(IlxWMenuItem) method.
    See Also:
    Serialized Form
    • Constructor Detail

      • IlxWPopupMenu

        public IlxWPopupMenu()
    • Method Detail

      • add

        public IlxWMenuItem add(IlxWMenuItem menuItem)
        Appends the specified menu item to the end of this menu.
        Parameters:
        menuItem - The JMenuItem to add.
        Returns:
        the JMenuItem added.
      • add

        public IlxWComponent add(IlxWComponent component)
        Adds the specified component to the end of this container.
        Overrides:
        add in class IlxWContainer
        Throws:
        IllegalStateException - if the given component already has a parent container.
        Parameters:
        component - The component to be added.
        Returns:
        the component passed as the argument.
      • add

        public IlxWMenuItem add(java.lang.String s)
        Creates a new menu item with the specified text and appends it to the end of this menu.
        Parameters:
        s - The string for the menu item to be added.
      • addSeparator

        public void addSeparator()
        Appends a new separator at the end of the menu.
      • emitOnContextMenuJSCode

        public java.lang.String emitOnContextMenuJSCode(IlxWPort port)
        Emits the JavaScript string used to show the popup menu. This JavaScript is attend to be used as event handler for the oncontextmenu event.

© Copyright IBM Corp. 1987, 2020