ilog.webui.dhtml.components

Class IlxWMenuBar

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


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

      • IlxWMenuBar

        public IlxWMenuBar()
    • Method Detail

      • doPrint

        protected void doPrint(IlxWPort port)
                        throws java.io.IOException
        Overrides:
        doPrint in class IlxWComponent
        Throws:
        java.io.IOException
      • setDHtml

        public void setDHtml(boolean dhtml)
        Sets the value of the DHTML style property. If the DHTML property is true and if the component supports the DHTML mode (see supportsDHtml(ilog.webui.dhtml.IlxWPort)), the menu bar will be displayed as as a lightweight DHTML menu bar. Otherwise, the menu bar will be displayed with as a list of <select> HTML element.
        Parameters:
        dhtml - if true, the component will be displayed in DHTML mode if the component supports the DHTML mode.
      • supportsDHtml

        public boolean supportsDHtml(IlxWPort port)
        Tells whether this component supports the DHTML mode according to the given port.
        Parameters:
        port - the current port
        Returns:
        true if the component supports the DHTML mode
      • add

        public IlxWMenu add(IlxWMenu menu)
        Adds a menu to this menu bar.
        Parameters:
        menu - The menu to add.
        Returns:
        The added menu.

© Copyright IBM Corp. 1987, 2015