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
FeaturePath
s.
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 theFeaturePath
s.toString()
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 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:IFieldDefinition
Returns theFeaturePath
s.- Specified by:
getFeaturePaths
in interfaceIFieldDefinition
- Returns:
- the feature paths.
-
toString
-