Class OperationFieldDefinition
java.lang.Object
com._1c.g5.aef2.standard.definitions.AbstractDefinition
com._1c.g5.aef2.standard.definitions.LabeledDefinition
com._1c.g5.aef2.standard.definitions.OperationFieldDefinition
- All Implemented Interfaces:
IComponentFactory
,IDefinition
,ILabeledDefinition
,IOperationFieldDefinition
public class OperationFieldDefinition
extends LabeledDefinition
implements IOperationFieldDefinition
The operation field definition represents the definition of some operation of the object.
The feature is described with
The main purpose of this definition is to describe the UI element that consist of a label and a control for processing the specified operation.
The key feature of this definition is
EOperation
.
The main purpose of this definition is to describe the UI element that consist of a label and a control for processing the specified operation.
The key feature of this definition is
AbstractDefinition.hashCode()
and AbstractDefinition.equals(Object)
implementation, which ignore all fields except the label and the operation.
This feature allows to implement rules with convenient ways with
using sets of definitions.-
Constructor Summary
ConstructorsConstructorDescriptionOperationFieldDefinition
(Class<? extends IComponent<?>> componentClass, IParameterization parameterization, String label, org.eclipse.emf.ecore.EOperation operation) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.emf.ecore.EOperation
Returns the operation.Methods inherited from class com._1c.g5.aef2.standard.definitions.LabeledDefinition
getLabel, setLabel
Methods inherited from class com._1c.g5.aef2.standard.definitions.AbstractDefinition
createComponent, equals, getComponentClass, getConstructor, getId, getLayoutData, getParametrization, getParent, hashCode, setComponentClass, setComponentFactory, setLayoutData, setModelFactory, setParameterization, setParent
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com._1c.g5.aef2.standard.definitions.IComponentFactory
createComponent
Methods inherited from interface com._1c.g5.aef2.standard.definitions.IDefinition
getComponentClass, getId, getLayoutData, getParametrization, getParent
Methods inherited from interface com._1c.g5.aef2.standard.definitions.ILabeledDefinition
getLabel
-
Constructor Details
-
OperationFieldDefinition
public OperationFieldDefinition(Class<? extends IComponent<?>> componentClass, IParameterization parameterization, String label, org.eclipse.emf.ecore.EOperation operation) Creates a new instance.- Parameters:
componentClass
- the class of the component.parameterization
- the parameterization.label
- the label.operation
- the operation, cannot benull
.
-
-
Method Details
-
getOperation
public org.eclipse.emf.ecore.EOperation getOperation()Description copied from interface:IOperationFieldDefinition
Returns the operation.- Specified by:
getOperation
in interfaceIOperationFieldDefinition
- Returns:
- the operation.
-