All Superinterfaces:
MApplicationElement, MLocalizable, MUIElement, MUILabel
All Known Subinterfaces:
MDirectMenuItem, MDirectToolItem, MDynamicMenuContribution, MHandledItem, MHandledMenuItem, MHandledToolItem, MMenuItem, MToolItem
All Known Implementing Classes:
DirectMenuItemImpl, DirectToolItemImpl, DynamicMenuContributionImpl, HandledItemImpl, HandledMenuItemImpl, HandledToolItemImpl, ItemImpl, MenuItemImpl, ToolItemImpl

public interface MItem extends MUIElement, MUILabel
A representation of the model object 'Item'.

This is the base type for various menu and toolbar items.

Since:
1.0
Restriction:
This interface is not intended to be implemented by clients.

The following features are supported:

  • Method Details

    • 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

      void setEnabled(boolean value)
      Sets the value of the 'Enabled' attribute.
      Parameters:
      value - the new value of the 'Enabled' attribute.
      See Also:
    • 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

      void setSelected(boolean value)
      Sets the value of the 'Selected' attribute.
      Parameters:
      value - the new value of the 'Selected' attribute.
      See Also:
    • 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:
    • setType

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