Package com._1c.g5.v8.dt.form.model
Interface Button
- All Superinterfaces:
DataItem,org.eclipse.emf.ecore.EObject,ExtendedTooltipHolder,ExtensionAdoptedProperty,FormItem,FormVisualEntity,IBmObject,NamedElement,org.eclipse.emf.common.notify.Notifier,Titled,TitleStyle,Visible
- All Known Implementing Classes:
ButtonImpl
A representation of the model object 'Button'.
The following features are supported:
TypeCommand NameParameterRepresentationDefault ButtonOnly In All ActionsWidthAuto Max WidthMax WidthMin WidthHeightAuto Max HeightMax HeightHorizontal StretchVertical StretchGroup Horizontal AlignGroup Vertical AlignPlacement AreaCheckText ColorBack ColorBorder ColorFontPictureTool Tip RepresentationRepresentation In Context MenuShapeShape RepresentationPicture LocationLocation In Command BarCommand UniquenessOn Main Server Unavalable Behavior
- See Also:
-
Field Summary
Fields inherited from interface com._1c.g5.v8.bm.core.IBmObject
BM_NULL_ID -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the 'Back Color' containment reference.Returns the value of the 'Border Color' containment reference.Returns the value of the 'Command Name' reference.getFont()Returns the value of the 'Font' containment reference.Returns the value of the 'Group Horizontal Align' attribute.Returns the value of the 'Group Vertical Align' attribute.intReturns the value of the 'Height' attribute.Returns the value of the 'Location In Command Bar' attribute.intReturns the value of the 'Max Height' attribute.intReturns the value of the 'Max Width' attribute.intReturns the value of the 'Min Width' attribute.Returns the value of the 'Only In All Actions' attribute.Returns the value of the 'On Main Server Unavalable Behavior' attribute.Returns the value of the 'Parameter' containment reference.Returns the value of the 'Picture' containment reference.Returns the value of the 'Picture Location' attribute.Returns the value of the 'Placement Area' attribute.Returns the value of the 'Representation' attribute.Returns the value of the 'Representation In Context Menu' attribute.getShape()Returns the value of the 'Shape' attribute.Returns the value of the 'Shape Representation' attribute.Returns the value of the 'Text Color' containment reference.Returns the value of the 'Tool Tip Representation' attribute.getType()Returns the value of the 'Type' attribute.intgetWidth()Returns the value of the 'Width' attribute.booleanReturns the value of the 'Auto Max Height' attribute.booleanReturns the value of the 'Auto Max Width' attribute.booleanisCheck()Returns the value of the 'Check' attribute.booleanReturns the value of the 'Command Uniqueness' attribute.booleanReturns the value of the 'Default Button' attribute.booleanReturns the value of the 'Horizontal Stretch' attribute.booleanReturns the value of the 'Vertical Stretch' attribute.voidsetAutoMaxHeight(boolean value) Sets the value of the 'Auto Max Height' attribute.voidsetAutoMaxWidth(boolean value) Sets the value of the 'Auto Max Width' attribute.voidsetBackColor(Color value) Sets the value of the 'Back Color' containment reference.voidsetBorderColor(Color value) Sets the value of the 'Border Color' containment reference.voidsetCheck(boolean value) Sets the value of the 'Check' attribute.voidsetCommandName(Command value) Sets the value of the 'Command Name' reference.voidsetCommandUniqueness(boolean value) Sets the value of the 'Command Uniqueness' attribute.voidsetDefaultButton(boolean value) Sets the value of the 'Default Button' attribute.voidSets the value of the 'Font' containment reference.voidSets the value of the 'Group Horizontal Align' attribute.voidSets the value of the 'Group Vertical Align' attribute.voidsetHeight(int value) Sets the value of the 'Height' attribute.voidsetHorizontalStretch(boolean value) Sets the value of the 'Horizontal Stretch' attribute.voidSets the value of the 'Location In Command Bar' attribute.voidsetMaxHeight(int value) Sets the value of the 'Max Height' attribute.voidsetMaxWidth(int value) Sets the value of the 'Max Width' attribute.voidsetMinWidth(int value) Sets the value of the 'Min Width' attribute.voidsetOnlyInAllActions(Boolean value) Sets the value of the 'Only In All Actions' attribute.voidSets the value of the 'On Main Server Unavalable Behavior' attribute.voidsetParameter(Value value) Sets the value of the 'Parameter' containment reference.voidsetPicture(Picture value) Sets the value of the 'Picture' containment reference.voidSets the value of the 'Picture Location' attribute.voidSets the value of the 'Placement Area' attribute.voidSets the value of the 'Representation' attribute.voidSets the value of the 'Representation In Context Menu' attribute.voidsetShape(ButtonShape value) Sets the value of the 'Shape' attribute.voidSets the value of the 'Shape Representation' attribute.voidsetTextColor(Color value) Sets the value of the 'Text Color' containment reference.voidSets the value of the 'Tool Tip Representation' attribute.voidsetType(ManagedFormButtonType value) Sets the value of the 'Type' attribute.voidsetVerticalStretch(boolean value) Sets the value of the 'Vertical Stretch' attribute.voidsetWidth(int value) Sets the value of the 'Width' attribute.booleanMethods inherited from interface com._1c.g5.v8.dt.form.model.DataItem
getDataPath, getShortcut, getSkipOnInput, getTitleBackColor, getTitleHeight, getTitleLocation, isDefaultItem, setDataPath, setDefaultItem, setShortcut, setSkipOnInput, setTitleBackColor, setTitleHeight, setTitleLocationMethods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetMethods inherited from interface com._1c.g5.v8.dt.form.model.ExtendedTooltipHolder
getExtendedTooltip, setExtendedTooltipMethods inherited from interface com._1c.g5.v8.dt.form.model.ExtensionAdoptedProperty
getAdopted, getUnchanged, setAdopted, setUnchangedMethods inherited from interface com._1c.g5.v8.dt.form.model.FormItem
getDisplayImportance, getId, isPositionChanged, setDisplayImportance, setId, setPositionChangedMethods inherited from interface com._1c.g5.v8.dt.form.model.FormVisualEntity
getUserChangedPropertiesMethods inherited from interface com._1c.g5.v8.bm.core.IBmObject
bmGetEngine, bmGetFqn, bmGetId, bmGetNamespace, bmGetPlatformTransaction, bmGetProperties, bmGetProperty, bmGetReferences, bmGetResourceId, bmGetTopObject, bmGetTransaction, bmGetUri, bmGetUriAsString, bmIsTop, bmIsTransient, bmMatchSingleReference, bmSetPropertyMethods inherited from interface com._1c.g5.v8.dt.mcore.NamedElement
getName, setNameMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliverMethods inherited from interface com._1c.g5.v8.dt.form.model.TitleStyle
getTitleFont, getTitleTextColor, setTitleFont, setTitleTextColorMethods inherited from interface com._1c.g5.v8.dt.form.model.Visible
getUserVisible, isEnabled, isVisible, setEnabled, setUserVisible, setVisible
-
Method Details
-
getType
ManagedFormButtonType getType()Returns the value of the 'Type' attribute. The literals are from the enumerationManagedFormButtonType.- Returns:
- the value of the 'Type' attribute.
- See Also:
-
setType
Sets the value of the 'Type' attribute.- Parameters:
value- the new value of the 'Type' attribute.- See Also:
-
getCommandName
Command getCommandName()Returns the value of the 'Command Name' reference.- Returns:
- the value of the 'Command Name' reference.
- See Also:
-
setCommandName
Sets the value of the 'Command Name' reference.- Parameters:
value- the new value of the 'Command Name' reference.- See Also:
-
getParameter
Value getParameter()Returns the value of the 'Parameter' containment reference.- Returns:
- the value of the 'Parameter' containment reference.
- See Also:
-
setParameter
Sets the value of the 'Parameter' containment reference.- Parameters:
value- the new value of the 'Parameter' containment reference.- See Also:
-
getRepresentation
ButtonRepresentation getRepresentation()Returns the value of the 'Representation' attribute. The literals are from the enumerationButtonRepresentation.- Returns:
- the value of the 'Representation' attribute.
- See Also:
-
setRepresentation
Sets the value of the 'Representation' attribute.- Parameters:
value- the new value of the 'Representation' attribute.- See Also:
-
isDefaultButton
boolean isDefaultButton()Returns the value of the 'Default Button' attribute.- Returns:
- the value of the 'Default Button' attribute.
- See Also:
-
setDefaultButton
void setDefaultButton(boolean value) Sets the value of the 'Default Button' attribute.- Parameters:
value- the new value of the 'Default Button' attribute.- See Also:
-
getOnlyInAllActions
Boolean getOnlyInAllActions()Returns the value of the 'Only In All Actions' attribute.- Returns:
- the value of the 'Only In All Actions' attribute.
- See Also:
-
setOnlyInAllActions
Sets the value of the 'Only In All Actions' attribute.- Parameters:
value- the new value of the 'Only In All Actions' attribute.- See Also:
-
getWidth
int getWidth()Returns the value of the 'Width' attribute.- Returns:
- the value of the 'Width' attribute.
- See Also:
-
setWidth
void setWidth(int value) Sets the value of the 'Width' attribute.- Parameters:
value- the new value of the 'Width' attribute.- See Also:
-
isAutoMaxWidth
boolean isAutoMaxWidth()Returns the value of the 'Auto Max Width' attribute.- Returns:
- the value of the 'Auto Max Width' attribute.
- See Also:
-
setAutoMaxWidth
void setAutoMaxWidth(boolean value) Sets the value of the 'Auto Max Width' attribute.- Parameters:
value- the new value of the 'Auto Max Width' attribute.- See Also:
-
getMaxWidth
int getMaxWidth()Returns the value of the 'Max Width' attribute.- Returns:
- the value of the 'Max Width' attribute.
- See Also:
-
setMaxWidth
void setMaxWidth(int value) Sets the value of the 'Max Width' attribute.- Parameters:
value- the new value of the 'Max Width' attribute.- See Also:
-
getMinWidth
int getMinWidth()Returns the value of the 'Min Width' attribute.- Returns:
- the value of the 'Min Width' attribute.
- See Also:
-
setMinWidth
void setMinWidth(int value) Sets the value of the 'Min Width' attribute.- Parameters:
value- the new value of the 'Min Width' attribute.- See Also:
-
getHeight
int getHeight()Returns the value of the 'Height' attribute.- Returns:
- the value of the 'Height' attribute.
- See Also:
-
setHeight
void setHeight(int value) Sets the value of the 'Height' attribute.- Parameters:
value- the new value of the 'Height' attribute.- See Also:
-
isAutoMaxHeight
boolean isAutoMaxHeight()Returns the value of the 'Auto Max Height' attribute.- Returns:
- the value of the 'Auto Max Height' attribute.
- See Also:
-
setAutoMaxHeight
void setAutoMaxHeight(boolean value) Sets the value of the 'Auto Max Height' attribute.- Parameters:
value- the new value of the 'Auto Max Height' attribute.- See Also:
-
getMaxHeight
int getMaxHeight()Returns the value of the 'Max Height' attribute.- Returns:
- the value of the 'Max Height' attribute.
- See Also:
-
setMaxHeight
void setMaxHeight(int value) Sets the value of the 'Max Height' attribute.- Parameters:
value- the new value of the 'Max Height' attribute.- See Also:
-
isHorizontalStretch
boolean isHorizontalStretch()Returns the value of the 'Horizontal Stretch' attribute.- Returns:
- the value of the 'Horizontal Stretch' attribute.
- See Also:
-
setHorizontalStretch
void setHorizontalStretch(boolean value) Sets the value of the 'Horizontal Stretch' attribute.- Parameters:
value- the new value of the 'Horizontal Stretch' attribute.- See Also:
-
isVerticalStretch
boolean isVerticalStretch()Returns the value of the 'Vertical Stretch' attribute.- Returns:
- the value of the 'Vertical Stretch' attribute.
- See Also:
-
setVerticalStretch
void setVerticalStretch(boolean value) Sets the value of the 'Vertical Stretch' attribute.- Parameters:
value- the new value of the 'Vertical Stretch' attribute.- See Also:
-
getGroupHorizontalAlign
ItemHorizontalAlignment getGroupHorizontalAlign()Returns the value of the 'Group Horizontal Align' attribute. The literals are from the enumerationItemHorizontalAlignment.- Returns:
- the value of the 'Group Horizontal Align' attribute.
- See Also:
-
setGroupHorizontalAlign
Sets the value of the 'Group Horizontal Align' attribute.- Parameters:
value- the new value of the 'Group Horizontal Align' attribute.- See Also:
-
getGroupVerticalAlign
ItemVerticalAlignment getGroupVerticalAlign()Returns the value of the 'Group Vertical Align' attribute. The literals are from the enumerationItemVerticalAlignment.- Returns:
- the value of the 'Group Vertical Align' attribute.
- See Also:
-
setGroupVerticalAlign
Sets the value of the 'Group Vertical Align' attribute.- Parameters:
value- the new value of the 'Group Vertical Align' attribute.- See Also:
-
getPlacementArea
MenuElementPlacementArea getPlacementArea()Returns the value of the 'Placement Area' attribute. The literals are from the enumerationMenuElementPlacementArea.- Returns:
- the value of the 'Placement Area' attribute.
- See Also:
-
setPlacementArea
Sets the value of the 'Placement Area' attribute.- Parameters:
value- the new value of the 'Placement Area' attribute.- See Also:
-
isCheck
boolean isCheck()Returns the value of the 'Check' attribute.- Returns:
- the value of the 'Check' attribute.
- See Also:
-
setCheck
void setCheck(boolean value) Sets the value of the 'Check' attribute.- Parameters:
value- the new value of the 'Check' attribute.- See Also:
-
getTextColor
Color getTextColor()Returns the value of the 'Text Color' containment reference.- Returns:
- the value of the 'Text Color' containment reference.
- See Also:
-
setTextColor
Sets the value of the 'Text Color' containment reference.- Parameters:
value- the new value of the 'Text Color' containment reference.- See Also:
-
getBackColor
Color getBackColor()Returns the value of the 'Back Color' containment reference.- Returns:
- the value of the 'Back Color' containment reference.
- See Also:
-
setBackColor
Sets the value of the 'Back Color' containment reference.- Parameters:
value- the new value of the 'Back Color' containment reference.- See Also:
-
getBorderColor
Color getBorderColor()Returns the value of the 'Border Color' containment reference.- Returns:
- the value of the 'Border Color' containment reference.
- See Also:
-
setBorderColor
Sets the value of the 'Border Color' containment reference.- Parameters:
value- the new value of the 'Border Color' containment reference.- See Also:
-
getFont
Font getFont()Returns the value of the 'Font' containment reference.- Returns:
- the value of the 'Font' containment reference.
- See Also:
-
setFont
Sets the value of the 'Font' containment reference.- Parameters:
value- the new value of the 'Font' containment reference.- See Also:
-
getPicture
Picture getPicture()Returns the value of the 'Picture' containment reference.- Returns:
- the value of the 'Picture' containment reference.
- See Also:
-
setPicture
Sets the value of the 'Picture' containment reference.- Parameters:
value- the new value of the 'Picture' containment reference.- See Also:
-
getToolTipRepresentation
TooltipRepresentation getToolTipRepresentation()Returns the value of the 'Tool Tip Representation' attribute. The literals are from the enumerationTooltipRepresentation.- Returns:
- the value of the 'Tool Tip Representation' attribute.
- See Also:
-
setToolTipRepresentation
Sets the value of the 'Tool Tip Representation' attribute.- Parameters:
value- the new value of the 'Tool Tip Representation' attribute.- See Also:
-
getRepresentationInContextMenu
RepresentationInContextMenu getRepresentationInContextMenu()Returns the value of the 'Representation In Context Menu' attribute. The literals are from the enumerationRepresentationInContextMenu.- Returns:
- the value of the 'Representation In Context Menu' attribute.
- See Also:
-
setRepresentationInContextMenu
Sets the value of the 'Representation In Context Menu' attribute.- Parameters:
value- the new value of the 'Representation In Context Menu' attribute.- See Also:
-
getShape
ButtonShape getShape()Returns the value of the 'Shape' attribute. The literals are from the enumerationButtonShape.- Returns:
- the value of the 'Shape' attribute.
- See Also:
-
setShape
Sets the value of the 'Shape' attribute.- Parameters:
value- the new value of the 'Shape' attribute.- See Also:
-
getShapeRepresentation
ButtonShapeRepresentation getShapeRepresentation()Returns the value of the 'Shape Representation' attribute. The literals are from the enumerationButtonShapeRepresentation.- Returns:
- the value of the 'Shape Representation' attribute.
- See Also:
-
setShapeRepresentation
Sets the value of the 'Shape Representation' attribute.- Parameters:
value- the new value of the 'Shape Representation' attribute.- See Also:
-
getPictureLocation
FormButtonPictureLocation getPictureLocation()Returns the value of the 'Picture Location' attribute. The literals are from the enumerationFormButtonPictureLocation.- Returns:
- the value of the 'Picture Location' attribute.
- See Also:
-
setPictureLocation
Sets the value of the 'Picture Location' attribute.- Parameters:
value- the new value of the 'Picture Location' attribute.- See Also:
-
getLocationInCommandBar
ButtonLocationInCommandBar getLocationInCommandBar()Returns the value of the 'Location In Command Bar' attribute. The literals are from the enumerationButtonLocationInCommandBar.- Returns:
- the value of the 'Location In Command Bar' attribute.
- See Also:
-
setLocationInCommandBar
Sets the value of the 'Location In Command Bar' attribute.- Parameters:
value- the new value of the 'Location In Command Bar' attribute.- See Also:
-
isCommandUniqueness
boolean isCommandUniqueness()Returns the value of the 'Command Uniqueness' attribute. The default value is"true".- Returns:
- the value of the 'Command Uniqueness' attribute.
- See Also:
-
setCommandUniqueness
void setCommandUniqueness(boolean value) Sets the value of the 'Command Uniqueness' attribute.- Parameters:
value- the new value of the 'Command Uniqueness' attribute.- See Also:
-
validate
boolean validate(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context)
-