Class MenuBar.Item

    • Constructor Detail

      • Item

        public Item()
      • Item

        public Item​(java.lang.Object buttonData)
    • Method Detail

      • setEnabled

        public void setEnabled​(boolean enabled)
        Description copied from class: Component
        Sets the component's enabled state. Enabled components respond to user input events; disabled components do not.
        Overrides:
        setEnabled in class Button
        Parameters:
        enabled - true if the component is enabled; false, otherwise.
      • getMenu

        public Menu getMenu()
      • setMenu

        public void setMenu​(Menu menu)
      • isActive

        public boolean isActive()
      • setActive

        public void setActive​(boolean active)
      • setToggleButton

        @UnsupportedOperation
        public void setToggleButton​(boolean toggleButton)
        Description copied from class: Button
        Sets the button's toggle state.
        Overrides:
        setToggleButton in class Button
        Parameters:
        toggleButton - Whether or not this should be a toggle button.
      • isEnabled

        public boolean isEnabled()
        Description copied from class: Component
        Returns the component's enabled state.
        Overrides:
        isEnabled in class Component
        Returns:
        true if the component is enabled; false, otherwise.