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
The field definition is a definition of a component capable of editing a list of features of an object.
The features are defined as
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 is
FeaturePaths.
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 is
AbstractDefinition.hashCode() and AbstractDefinition.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
ConstructorsConstructorDescriptionFieldDefinition(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
Modifier and TypeMethodDescriptionorg.eclipse.emf.databinding.FeaturePath[]Returns theFeaturePaths.toString()Methods inherited from class com._1c.g5.aef2.standard.definitions.LabeledDefinition
getLabel, setLabelMethods inherited from class com._1c.g5.aef2.standard.definitions.AbstractDefinition
createComponent, equals, getComponentClass, getConstructor, getId, getLayoutData, getParametrization, getParent, hashCode, setComponentClass, setComponentFactory, setLayoutData, setModelFactory, setParameterization, setParentMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com._1c.g5.aef2.standard.definitions.IComponentFactory
createComponentMethods inherited from interface com._1c.g5.aef2.standard.definitions.IDefinition
getComponentClass, getId, getLayoutData, getParametrization, getParentMethods inherited from interface com._1c.g5.aef2.standard.definitions.ILabeledDefinition
getLabel
-
Constructor Details
-
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 Details
-
getFeaturePaths
public org.eclipse.emf.databinding.FeaturePath[] getFeaturePaths()Description copied from interface:IFieldDefinitionReturns theFeaturePaths.- Specified by:
getFeaturePathsin interfaceIFieldDefinition- Returns:
- the feature paths.
-
toString
-