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 withEOperation
.
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 isAbstractDefinition.hashCode()
andAbstractDefinition.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
Constructors Constructor Description OperationFieldDefinition(Class<? extends IComponent<?>> componentClass, IParameterization parameterization, String label, org.eclipse.emf.ecore.EOperation operation)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.emf.ecore.EOperation
getOperation()
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 Detail
-
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 Detail
-
getOperation
public org.eclipse.emf.ecore.EOperation getOperation()
Description copied from interface:IOperationFieldDefinition
Returns the operation.- Specified by:
getOperation
in interfaceIOperationFieldDefinition
- Returns:
- the operation.
-
-