Package com._1c.g5.v8.dt.dcs.ui.datasets
Class DataSetsWrapperBase<T extends DataSet>
- java.lang.Object
-
- com._1c.g5.v8.dt.dcs.dataset.DataSetWrapperBase<T>
-
- com._1c.g5.v8.dt.dcs.ui.datasets.DataSetsWrapperBase<T>
-
- All Implemented Interfaces:
IDataSetWrapper,IDataSetsWrapper
- Direct Known Subclasses:
DataSetsWrapperObject,DataSetsWrapperQuery,DataSetsWrapperUnion
public abstract class DataSetsWrapperBase<T extends DataSet> extends DataSetWrapperBase<T> implements IDataSetsWrapper
Base class for data set wrapper
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.dcs.dataset.IDataSetWrapper
IDataSetWrapper.FieldRestriction, IDataSetWrapper.FieldSynonym
-
-
Field Summary
Fields Modifier and Type Field Description protected DataCompositionSchemaControlContextcontextprotected DataSetsdataSetsPageprotected DataSetsWrapperUnionparent-
Fields inherited from class com._1c.g5.v8.dt.dcs.dataset.DataSetWrapperBase
dataSet, fieldsTree, fieldsWrappers, fieldsWrappersByName, restrictions, synonyms
-
-
Constructor Summary
Constructors Constructor Description DataSetsWrapperBase(DataSets dataSetsPage, T dataSet)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddField(DataSetField currentField, DataSetField field)Add fieldvoidcopyField(DataSetField currentField, String parentPathNew)Copy fieldintgetCurrentAlias()Gets number of current aliasStringgetCurrentLanguageCode()Get current language codeDataSetsWrapperUniongetParent()Get parent data set wrapperprotected voidnotifyParentAddField(IDataSetFieldsWrapper fieldWrapper)Notify parent data set about field addedprotected voidnotifyParentRemoveFieldRestriction(IDataSetFieldsWrapper fieldWrapper)Notify parent data set about restriction removedprotected voidnotifyParentSetFieldRestriction(IDataSetFieldsWrapper fieldWrapper)Notify parent data set about restriction changedvoidremoveField(DataSetField field)Remove fieldvoidsetFieldAttrUseRestiction(DataSetField dataSetField, org.eclipse.emf.ecore.EStructuralFeature feature, boolean state)Set field attribute restictionvoidsetFieldName(DataSetField field, String name)Set 'Field' property of fieldvoidsetFieldPath(DataSetField field, String path)Set 'Data path' property of fieldvoidsetFieldTitle(DataSetField field, LocalString title)Set 'Title' property of fieldvoidsetFieldUseRestiction(DataSetField dataSetField, org.eclipse.emf.ecore.EStructuralFeature feature, boolean state)Set field restictionvoidsetParent(DataSetsWrapperUnion parent)Set parent data set wrapper-
Methods inherited from class com._1c.g5.v8.dt.dcs.dataset.DataSetWrapperBase
addFieldWrapper, createFieldWrapper, createPath, fillDataSetFields, fillFieldsWrappers, getAncestorField, getChildFields, getField, getFieldName, getFieldParentPath, getFieldPath, getFieldRestriction, getFieldsWrappers, getFieldSynonym, init, moveField
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.dt.dcs.dataset.IDataSetWrapper
createPath, getAncestorField, getChildFields, getField, getFieldName, getFieldParentPath, getFieldPath, getFieldRestriction, getFieldsWrappers, getFieldSynonym, init, moveField
-
-
-
-
Field Detail
-
dataSetsPage
protected DataSets dataSetsPage
-
parent
protected DataSetsWrapperUnion parent
-
context
protected DataCompositionSchemaControlContext context
-
-
Method Detail
-
setParent
public void setParent(DataSetsWrapperUnion parent)
Description copied from interface:IDataSetsWrapperSet parent data set wrapper- Specified by:
setParentin interfaceIDataSetsWrapper- Parameters:
parent- parent wrapper, can benullif data set doesn't have parent
-
getParent
public DataSetsWrapperUnion getParent()
Description copied from interface:IDataSetsWrapperGet parent data set wrapper- Specified by:
getParentin interfaceIDataSetsWrapper- Returns:
- parent wrapper if exists or
null
-
addField
public void addField(DataSetField currentField, DataSetField field)
Description copied from interface:IDataSetWrapperAdd field- Specified by:
addFieldin interfaceIDataSetWrapper- Overrides:
addFieldin classDataSetWrapperBase<T extends DataSet>- Parameters:
currentField- current field, can benullfield- field, can't benull
-
copyField
public void copyField(DataSetField currentField, String parentPathNew)
Description copied from interface:IDataSetWrapperCopy field- Specified by:
copyFieldin interfaceIDataSetWrapper- Parameters:
currentField- field, can't benullparentPathNew- destination folder path ornull(empty) for root
-
removeField
public void removeField(DataSetField field)
Description copied from interface:IDataSetWrapperRemove field- Specified by:
removeFieldin interfaceIDataSetWrapper- Parameters:
field- field, can't benull
-
setFieldName
public void setFieldName(DataSetField field, String name)
Description copied from interface:IDataSetWrapperSet 'Field' property of field- Specified by:
setFieldNamein interfaceIDataSetWrapper- Parameters:
field- field, can't benullname- value of 'Field' property
-
setFieldPath
public void setFieldPath(DataSetField field, String path)
Description copied from interface:IDataSetWrapperSet 'Data path' property of field- Specified by:
setFieldPathin interfaceIDataSetWrapper- Parameters:
field- field, can't benullpath- value of 'Data path' property, can't benull
-
setFieldTitle
public void setFieldTitle(DataSetField field, LocalString title)
Description copied from interface:IDataSetWrapperSet 'Title' property of field- Specified by:
setFieldTitlein interfaceIDataSetWrapper- Parameters:
field- field, can't be nulltitle- value of 'Title' property, can't benull
-
getCurrentLanguageCode
public String getCurrentLanguageCode()
Description copied from interface:IDataSetWrapperGet current language code- Specified by:
getCurrentLanguageCodein interfaceIDataSetWrapper- Returns:
- language code, never
null
-
getCurrentAlias
public int getCurrentAlias()
Description copied from interface:IDataSetWrapperGets number of current alias- Specified by:
getCurrentAliasin interfaceIDataSetWrapper- Returns:
- number of current alias
-
setFieldUseRestiction
public void setFieldUseRestiction(DataSetField dataSetField, org.eclipse.emf.ecore.EStructuralFeature feature, boolean state)
Description copied from interface:IDataSetWrapperSet field restiction- Specified by:
setFieldUseRestictionin interfaceIDataSetWrapper- Parameters:
dataSetField- field, can't benullfeature- feature of restriction, can't benullstate- state
-
setFieldAttrUseRestiction
public void setFieldAttrUseRestiction(DataSetField dataSetField, org.eclipse.emf.ecore.EStructuralFeature feature, boolean state)
Description copied from interface:IDataSetWrapperSet field attribute restiction- Specified by:
setFieldAttrUseRestictionin interfaceIDataSetWrapper- Parameters:
dataSetField- field, can't benullfeature- feature of attribute restriction, can't benullstate- state
-
notifyParentAddField
protected void notifyParentAddField(IDataSetFieldsWrapper fieldWrapper)
Notify parent data set about field added- Parameters:
fieldWrapper- field wrapper, can't be null
-
notifyParentSetFieldRestriction
protected void notifyParentSetFieldRestriction(IDataSetFieldsWrapper fieldWrapper)
Notify parent data set about restriction changed- Parameters:
fieldWrapper- field wrapper, can't be null
-
notifyParentRemoveFieldRestriction
protected void notifyParentRemoveFieldRestriction(IDataSetFieldsWrapper fieldWrapper)
Notify parent data set about restriction removed- Parameters:
fieldWrapper- field wrapper, can't be null
-
-