Interface MItem

    • Method Detail

      • isEnabled

        boolean isEnabled()
        Returns the value of the 'Enabled' attribute. The default value is "true".

        Defines the current enablement state of a given menu or toolbar item.

        Returns:
        the value of the 'Enabled' attribute.
        See Also:
        setEnabled(boolean)
      • setEnabled

        void setEnabled​(boolean value)
        Sets the value of the 'Enabled' attribute.
        Parameters:
        value - the new value of the 'Enabled' attribute.
        See Also:
        isEnabled()
      • isSelected

        boolean isSelected()
        Returns the value of the 'Selected' attribute.

        Defines the current selection state for a menu or tool item

        Returns:
        the value of the 'Selected' attribute.
        See Also:
        setSelected(boolean)
      • setSelected

        void setSelected​(boolean value)
        Sets the value of the 'Selected' attribute.
        Parameters:
        value - the new value of the 'Selected' attribute.
        See Also:
        isSelected()
      • getType

        ItemType getType()
        Returns the value of the 'Type' attribute. The literals are from the enumeration ItemType.

        Defines the item type for this item.

        Returns:
        the value of the 'Type' attribute.
        See Also:
        ItemType, setType(ItemType)
      • setType

        void setType​(ItemType value)
        Sets the value of the 'Type' attribute.
        Parameters:
        value - the new value of the 'Type' attribute.
        See Also:
        ItemType, getType()