ilog.webui.dhtml.components

Class IlxWCheckBoxMenuItem

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


    public class IlxWCheckBoxMenuItem
    extends IlxWMenuItem
    A menu item that can be selected or deselected. If selected, the menu item typically appears with a check mark next to it. If unselected or deselected, the menu item appears without a check mark. Like a regular menu item, a check box menu item can have either text or a graphic icon associated with it, or both.
    See Also:
    IlxWMenuBar, Serialized Form
    • Constructor Detail

      • IlxWCheckBoxMenuItem

        public IlxWCheckBoxMenuItem()
        Creates an initially unselected checkboxMenuItem with no set text or icon.
      • IlxWCheckBoxMenuItem

        public IlxWCheckBoxMenuItem(java.lang.String text)
        Creates an initially unselected checkboxMenuItem with text.
        Parameters:
        text - The text of the check box menu item.
      • IlxWCheckBoxMenuItem

        public IlxWCheckBoxMenuItem(java.lang.String text,
                            java.lang.String icon)
        Creates an initially unselected checkboxMenuItem with the specified text and icon.
        Parameters:
        text - The text of the menu item.
        icon - The icon of the menu item.
      • IlxWCheckBoxMenuItem

        public IlxWCheckBoxMenuItem(java.lang.String text,
                            boolean b)
        Creates a check box menu item with the specified text and selection state.
        Parameters:
        text - The text of the check box menu item.
        b - The selected state of the check box menu item.
      • IlxWCheckBoxMenuItem

        public IlxWCheckBoxMenuItem(java.lang.String text,
                            java.lang.String icon,
                            boolean b)
        Creates a check box menu item with the specified text, icon, and selection state.
        Parameters:
        text - The text of the check box menu item.
        icon - The icon of the check box menu item.
        b - The selected state of the check box menu item.
    • Method Detail

      • setSelected

        public void setSelected(boolean b)
        Sets the selected-state of the check box menu item.
      • setEnabled

        public void setEnabled(boolean b)
        Description copied from class: IlxWMenuItem
        Enables (or disables) the menu item.
        Overrides:
        setEnabled in class IlxWMenuItem
      • isSelected

        public boolean isSelected()
        Returns the selected state of the check box menu item.
        Returns:
        true if the check box menu item is selected, false if it is not.

© Copyright IBM Corp. 1987, 2020