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:
Type
Command Name
Parameter
Representation
Default Button
Only In All Actions
Width
Auto Max Width
Max Width
Min Width
Height
Auto Max Height
Max Height
Horizontal Stretch
Vertical Stretch
Group Horizontal Align
Group Vertical Align
Placement Area
Check
Text Color
Back Color
Border Color
Font
Picture
Tool Tip Representation
Representation In Context Menu
Shape
Shape Representation
Picture Location
Location In Command Bar
Command Uniqueness
On 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.int
Returns the value of the 'Height' attribute.Returns the value of the 'Location In Command Bar' attribute.int
Returns the value of the 'Max Height' attribute.int
Returns the value of the 'Max Width' attribute.int
Returns 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.int
getWidth()
Returns the value of the 'Width' attribute.boolean
Returns the value of the 'Auto Max Height' attribute.boolean
Returns the value of the 'Auto Max Width' attribute.boolean
isCheck()
Returns the value of the 'Check' attribute.boolean
Returns the value of the 'Command Uniqueness' attribute.boolean
Returns the value of the 'Default Button' attribute.boolean
Returns the value of the 'Horizontal Stretch' attribute.boolean
Returns the value of the 'Vertical Stretch' attribute.void
setAutoMaxHeight
(boolean value) Sets the value of the 'Auto Max Height
' attribute.void
setAutoMaxWidth
(boolean value) Sets the value of the 'Auto Max Width
' attribute.void
setBackColor
(Color value) Sets the value of the 'Back Color
' containment reference.void
setBorderColor
(Color value) Sets the value of the 'Border Color
' containment reference.void
setCheck
(boolean value) Sets the value of the 'Check
' attribute.void
setCommandName
(Command value) Sets the value of the 'Command Name
' reference.void
setCommandUniqueness
(boolean value) Sets the value of the 'Command Uniqueness
' attribute.void
setDefaultButton
(boolean value) Sets the value of the 'Default Button
' attribute.void
Sets the value of the 'Font
' containment reference.void
Sets the value of the 'Group Horizontal Align
' attribute.void
Sets the value of the 'Group Vertical Align
' attribute.void
setHeight
(int value) Sets the value of the 'Height
' attribute.void
setHorizontalStretch
(boolean value) Sets the value of the 'Horizontal Stretch
' attribute.void
Sets the value of the 'Location In Command Bar
' attribute.void
setMaxHeight
(int value) Sets the value of the 'Max Height
' attribute.void
setMaxWidth
(int value) Sets the value of the 'Max Width
' attribute.void
setMinWidth
(int value) Sets the value of the 'Min Width
' attribute.void
setOnlyInAllActions
(Boolean value) Sets the value of the 'Only In All Actions
' attribute.void
Sets the value of the 'On Main Server Unavalable Behavior
' attribute.void
setParameter
(Value value) Sets the value of the 'Parameter
' containment reference.void
setPicture
(Picture value) Sets the value of the 'Picture
' containment reference.void
Sets the value of the 'Picture Location
' attribute.void
Sets the value of the 'Placement Area
' attribute.void
Sets the value of the 'Representation
' attribute.void
Sets the value of the 'Representation In Context Menu
' attribute.void
setShape
(ButtonShape value) Sets the value of the 'Shape
' attribute.void
Sets the value of the 'Shape Representation
' attribute.void
setTextColor
(Color value) Sets the value of the 'Text Color
' containment reference.void
Sets the value of the 'Tool Tip Representation
' attribute.void
setType
(ManagedFormButtonType value) Sets the value of the 'Type
' attribute.void
setVerticalStretch
(boolean value) Sets the value of the 'Vertical Stretch
' attribute.void
setWidth
(int value) Sets the value of the 'Width
' attribute.boolean
Methods inherited from interface com._1c.g5.v8.dt.form.model.DataItem
getDataPath, getShortcut, getSkipOnInput, getTitleBackColor, getTitleHeight, getTitleLocation, isDefaultItem, setDataPath, setDefaultItem, setShortcut, setSkipOnInput, setTitleBackColor, setTitleHeight, setTitleLocation
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.v8.dt.form.model.ExtendedTooltipHolder
getExtendedTooltip, setExtendedTooltip
Methods inherited from interface com._1c.g5.v8.dt.form.model.ExtensionAdoptedProperty
getAdopted, getUnchanged, setAdopted, setUnchanged
Methods inherited from interface com._1c.g5.v8.dt.form.model.FormItem
getDisplayImportance, getId, isPositionChanged, setDisplayImportance, setId, setPositionChanged
Methods inherited from interface com._1c.g5.v8.dt.form.model.FormVisualEntity
getUserChangedProperties
Methods 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, bmSetProperty
Methods inherited from interface com._1c.g5.v8.dt.mcore.NamedElement
getName, setName
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
Methods inherited from interface com._1c.g5.v8.dt.form.model.TitleStyle
getTitleFont, getTitleTextColor, setTitleFont, setTitleTextColor
Methods 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)
-