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.boolean
Returns the value of the 'Enabled' attribute.boolean
Returns the value of the 'Selected' attribute.void
setEnabled
(boolean value) Sets the value of the 'Enabled
' attribute.void
setSelected
(boolean value) Sets the value of the 'Selected
' attribute.void
Sets the value of the 'Type
' attribute.Methods inherited from interface org.eclipse.e4.ui.model.application.MApplicationElement
getContributorURI, getElementId, getPersistedState, getTags, getTransientData, setContributorURI, setElementId
Methods inherited from interface org.eclipse.e4.ui.model.application.ui.MLocalizable
updateLocalization
Methods inherited from interface org.eclipse.e4.ui.model.application.ui.MUIElement
getAccessibilityPhrase, getContainerData, getCurSharedRef, getLocalizedAccessibilityPhrase, getParent, getRenderer, getVisibleWhen, getWidget, isOnTop, isToBeRendered, isVisible, setAccessibilityPhrase, setContainerData, setCurSharedRef, setOnTop, setParent, setRenderer, setToBeRendered, setVisible, setVisibleWhen, setWidget
Methods inherited from interface org.eclipse.e4.ui.model.application.ui.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
ItemType getType()Returns the value of the 'Type' attribute. The literals are from the enumerationItemType
.Defines the item type for this item.
- Returns:
- the value of the 'Type' attribute.
- See Also:
-