Class FieldDefinition
- java.lang.Object
-
- com._1c.g5.aef2.standard.definitions.AbstractDefinition
-
- com._1c.g5.aef2.standard.definitions.LabeledDefinition
-
- com._1c.g5.aef2.standard.definitions.FieldDefinition
-
- All Implemented Interfaces:
IComponentFactory,IDefinition,IFieldDefinition,ILabeledDefinition
- Direct Known Subclasses:
ExtendedFieldDefinition
public class FieldDefinition extends LabeledDefinition implements IFieldDefinition
The field definition is a definition of a component capable of editing a list of features of an object. The features are defined asFeaturePaths.
The main purpose of this definition is to describe the UI element that consists of a label and a control for editing the specified list of features.
The key feature of this definition isAbstractDefinition.hashCode()andAbstractDefinition.equals(Object)implementation, which ignores all fields except the array of the feature paths. This feature allows to implement rules with convenient ways for managing sets of definitions.
-
-
Constructor Summary
Constructors Constructor Description FieldDefinition(Class<? extends IComponent<?>> componentClass, IParameterization parameterization, String label, org.eclipse.emf.databinding.FeaturePath... paths)Creates a new instance with the specified arguments.FieldDefinition(Class<? extends IComponent<?>> componentClass, IParameterization parameterization, String label, org.eclipse.emf.ecore.EStructuralFeature... features)Creates a new instance with the single feature path defined by its features.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.emf.databinding.FeaturePath[]getFeaturePaths()Returns theFeaturePaths.StringtoString()-
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, 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
-
FieldDefinition
public FieldDefinition(Class<? extends IComponent<?>> componentClass, IParameterization parameterization, String label, org.eclipse.emf.databinding.FeaturePath... paths)
Creates a new instance with the specified arguments.- Parameters:
componentClass- the class of the componentparameterization- the parameterizationlabel- the labelpaths- the feature paths, may be empty
-
FieldDefinition
public FieldDefinition(Class<? extends IComponent<?>> componentClass, IParameterization parameterization, String label, org.eclipse.emf.ecore.EStructuralFeature... features)
Creates a new instance with the single feature path defined by its features.- Parameters:
componentClass- the class of the component.parameterization- the parameterization.label- the label.features- the features forFeaturePath.
-
-
Method Detail
-
getFeaturePaths
public org.eclipse.emf.databinding.FeaturePath[] getFeaturePaths()
Description copied from interface:IFieldDefinitionReturns theFeaturePaths.- Specified by:
getFeaturePathsin interfaceIFieldDefinition- Returns:
- the feature paths.
-
-