Interface ToolBarItemViewModel
- All Superinterfaces:
org.eclipse.emf.ecore.EObject
,IViewModel
,org.eclipse.emf.common.notify.Notifier
- All Known Implementing Classes:
ToolBarItemViewModelImpl
A representation of the model object 'Tool Bar Item View Model'.
The view model for ToolBarItem
The following features are supported:
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.swt.graphics.Image
getImage()
Returns the value of the 'Image' attribute.int
getStyle()
Returns the value of the 'Style' attribute.Returns the value of the 'Tooltip Text' 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
setImage
(org.eclipse.swt.graphics.Image value) Sets the value of the 'Image
' attribute.void
setSelected
(boolean value) Sets the value of the 'Selected
' attribute.void
setStyle
(int value) Sets the value of the 'Style
' attribute.void
setTooltipText
(String value) Sets the value of the 'Tooltip Text
' attribute.Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
Methods inherited from interface com._1c.g5.aef2.viewModels.IViewModel
getEventChannel, getParent, setEventChannel, setParent
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
getImage
org.eclipse.swt.graphics.Image getImage()Returns the value of the 'Image' attribute. The image of the item- Returns:
- the value of the 'Image' attribute.
- See Also:
-
setImage
void setImage(org.eclipse.swt.graphics.Image value) Sets the value of the 'Image
' attribute.- Parameters:
value
- the new value of the 'Image' attribute.- See Also:
-
getTooltipText
String getTooltipText()Returns the value of the 'Tooltip Text' attribute. The default value is""
. The tooltip text of the item- Returns:
- the value of the 'Tooltip Text' attribute.
- See Also:
-
setTooltipText
Sets the value of the 'Tooltip Text
' attribute.- Parameters:
value
- the new value of the 'Tooltip Text' attribute.- See Also:
-
isEnabled
boolean isEnabled()Returns the value of the 'Enabled' attribute. The default value is"true"
. The enabled state of the 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. The selected state of the 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:
-
getStyle
int getStyle()Returns the value of the 'Style' attribute. The default value is"8"
. The toolbar item style- Returns:
- the value of the 'Style' attribute.
- See Also:
-
setStyle
void setStyle(int value) Sets the value of the 'Style
' attribute.- Parameters:
value
- the new value of the 'Style' attribute.- See Also:
-