Interface MItem
- 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
A representation of the model object 'Item'.
This is the base type for various menu and toolbar items.
-
Method Summary
Modifier and TypeMethodDescriptiongetType()Returns the value of the 'Type' attribute.booleanReturns the value of the 'Enabled' attribute.booleanReturns the value of the 'Selected' attribute.voidsetEnabled(boolean value) Sets the value of the 'Enabled' attribute.voidsetSelected(boolean value) Sets the value of the 'Selected' attribute.voidSets the value of the 'Type' attribute.Methods inherited from interface MApplicationElement
getContributorURI, getElementId, getPersistedState, getTags, getTransientData, setContributorURI, setElementIdMethods inherited from interface MLocalizable
updateLocalizationMethods inherited from interface MUIElement
getAccessibilityPhrase, getContainerData, getCurSharedRef, getLocalizedAccessibilityPhrase, getParent, getRenderer, getVisibleWhen, getWidget, isOnTop, isToBeRendered, isVisible, setAccessibilityPhrase, setContainerData, setCurSharedRef, setOnTop, setParent, setRenderer, setToBeRendered, setVisible, setVisibleWhen, setWidgetMethods inherited from interface MUILabel
getIconURI, getLabel, getLocalizedLabel, getLocalizedTooltip, getTooltip, setIconURI, setLabel, setTooltip
-
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
-