Interface ButtonItemViewModel
-
- All Superinterfaces:
org.eclipse.emf.ecore.EObject,IViewModel,org.eclipse.emf.common.notify.Notifier
- All Known Implementing Classes:
ButtonItemViewModelImpl
public interface ButtonItemViewModel extends IViewModel
A representation of the model object 'Button Item View Model'. * Represents one button item which includes in views as part of the control.The following features are supported:
- See Also:
DtAefPackage.getButtonItemViewModel()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetContextId()Returns the value of the 'Context Id' attribute.org.eclipse.swt.graphics.ImagegetImage()Returns the value of the 'Image' attribute.StringgetTooltip()Returns the value of the 'Tooltip' attribute.booleanisEnabled()Returns the value of the 'Enabled' attribute.booleanisVisible()Returns the value of the 'Visible' attribute.voidsetContextId(String value)Sets the value of the 'Context Id' attribute.voidsetEnabled(boolean value)Sets the value of the 'Enabled' attribute.voidsetImage(org.eclipse.swt.graphics.Image value)Sets the value of the 'Image' attribute.voidsetTooltip(String value)Sets the value of the 'Tooltip' attribute.voidsetVisible(boolean value)Sets the value of the 'Visible' 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
-
-
-
-
Method Detail
-
isEnabled
boolean isEnabled()
Returns the value of the 'Enabled' attribute. The default value is"true". * The enable state of the button item.- Returns:
- the value of the 'Enabled' attribute.
- See Also:
setEnabled(boolean),DtAefPackage.getButtonItemViewModel_Enabled()
-
setEnabled
void setEnabled(boolean value)
Sets the value of the 'Enabled' attribute.- Parameters:
value- the new value of the 'Enabled' attribute.- See Also:
isEnabled()
-
isVisible
boolean isVisible()
Returns the value of the 'Visible' attribute. The default value is"true". * The visible state of the button item.- Returns:
- the value of the 'Visible' attribute.
- See Also:
setVisible(boolean),DtAefPackage.getButtonItemViewModel_Visible()
-
setVisible
void setVisible(boolean value)
Sets the value of the 'Visible' attribute.- Parameters:
value- the new value of the 'Visible' attribute.- See Also:
isVisible()
-
getTooltip
String getTooltip()
Returns the value of the 'Tooltip' attribute. * The tooltip for button item.- Returns:
- the value of the 'Tooltip' attribute.
- See Also:
setTooltip(String),DtAefPackage.getButtonItemViewModel_Tooltip()
-
setTooltip
void setTooltip(String value)
Sets the value of the 'Tooltip' attribute.- Parameters:
value- the new value of the 'Tooltip' attribute.- See Also:
getTooltip()
-
getImage
org.eclipse.swt.graphics.Image getImage()
Returns the value of the 'Image' attribute. * The icon for button item.- Returns:
- the value of the 'Image' attribute.
- See Also:
setImage(Image),DtAefPackage.getButtonItemViewModel_Image()
-
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:
getImage()
-
getContextId
String getContextId()
Returns the value of the 'Context Id' attribute. * The context to define hotkey command.- Returns:
- the value of the 'Context Id' attribute.
- See Also:
setContextId(String),DtAefPackage.getButtonItemViewModel_ContextId()
-
setContextId
void setContextId(String value)
Sets the value of the 'Context Id' attribute.- Parameters:
value- the new value of the 'Context Id' attribute.- See Also:
getContextId()
-
-