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 DataCompositionSchemaControlContext
context
protected DataSets
dataSetsPage
protected DataSetsWrapperUnion
parent
-
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 void
addField(DataSetField currentField, DataSetField field)
Add fieldvoid
copyField(DataSetField currentField, String parentPathNew)
Copy fieldint
getCurrentAlias()
Gets number of current aliasString
getCurrentLanguageCode()
Get current language codeDataSetsWrapperUnion
getParent()
Get parent data set wrapperprotected void
notifyParentAddField(IDataSetFieldsWrapper fieldWrapper)
Notify parent data set about field addedprotected void
notifyParentRemoveFieldRestriction(IDataSetFieldsWrapper fieldWrapper)
Notify parent data set about restriction removedprotected void
notifyParentSetFieldRestriction(IDataSetFieldsWrapper fieldWrapper)
Notify parent data set about restriction changedvoid
removeField(DataSetField field)
Remove fieldvoid
setFieldAttrUseRestiction(DataSetField dataSetField, org.eclipse.emf.ecore.EStructuralFeature feature, boolean state)
Set field attribute restictionvoid
setFieldName(DataSetField field, String name)
Set 'Field' property of fieldvoid
setFieldPath(DataSetField field, String path)
Set 'Data path' property of fieldvoid
setFieldTitle(DataSetField field, LocalString title)
Set 'Title' property of fieldvoid
setFieldUseRestiction(DataSetField dataSetField, org.eclipse.emf.ecore.EStructuralFeature feature, boolean state)
Set field restictionvoid
setParent(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:IDataSetsWrapper
Set parent data set wrapper- Specified by:
setParent
in interfaceIDataSetsWrapper
- Parameters:
parent
- parent wrapper, can benull
if data set doesn't have parent
-
getParent
public DataSetsWrapperUnion getParent()
Description copied from interface:IDataSetsWrapper
Get parent data set wrapper- Specified by:
getParent
in interfaceIDataSetsWrapper
- Returns:
- parent wrapper if exists or
null
-
addField
public void addField(DataSetField currentField, DataSetField field)
Description copied from interface:IDataSetWrapper
Add field- Specified by:
addField
in interfaceIDataSetWrapper
- Overrides:
addField
in classDataSetWrapperBase<T extends DataSet>
- Parameters:
currentField
- current field, can benull
field
- field, can't benull
-
copyField
public void copyField(DataSetField currentField, String parentPathNew)
Description copied from interface:IDataSetWrapper
Copy field- Specified by:
copyField
in interfaceIDataSetWrapper
- Parameters:
currentField
- field, can't benull
parentPathNew
- destination folder path ornull
(empty) for root
-
removeField
public void removeField(DataSetField field)
Description copied from interface:IDataSetWrapper
Remove field- Specified by:
removeField
in interfaceIDataSetWrapper
- Parameters:
field
- field, can't benull
-
setFieldName
public void setFieldName(DataSetField field, String name)
Description copied from interface:IDataSetWrapper
Set 'Field' property of field- Specified by:
setFieldName
in interfaceIDataSetWrapper
- Parameters:
field
- field, can't benull
name
- value of 'Field' property
-
setFieldPath
public void setFieldPath(DataSetField field, String path)
Description copied from interface:IDataSetWrapper
Set 'Data path' property of field- Specified by:
setFieldPath
in interfaceIDataSetWrapper
- Parameters:
field
- field, can't benull
path
- value of 'Data path' property, can't benull
-
setFieldTitle
public void setFieldTitle(DataSetField field, LocalString title)
Description copied from interface:IDataSetWrapper
Set 'Title' property of field- Specified by:
setFieldTitle
in interfaceIDataSetWrapper
- Parameters:
field
- field, can't be nulltitle
- value of 'Title' property, can't benull
-
getCurrentLanguageCode
public String getCurrentLanguageCode()
Description copied from interface:IDataSetWrapper
Get current language code- Specified by:
getCurrentLanguageCode
in interfaceIDataSetWrapper
- Returns:
- language code, never
null
-
getCurrentAlias
public int getCurrentAlias()
Description copied from interface:IDataSetWrapper
Gets number of current alias- Specified by:
getCurrentAlias
in interfaceIDataSetWrapper
- Returns:
- number of current alias
-
setFieldUseRestiction
public void setFieldUseRestiction(DataSetField dataSetField, org.eclipse.emf.ecore.EStructuralFeature feature, boolean state)
Description copied from interface:IDataSetWrapper
Set field restiction- Specified by:
setFieldUseRestiction
in interfaceIDataSetWrapper
- Parameters:
dataSetField
- field, can't benull
feature
- feature of restriction, can't benull
state
- state
-
setFieldAttrUseRestiction
public void setFieldAttrUseRestiction(DataSetField dataSetField, org.eclipse.emf.ecore.EStructuralFeature feature, boolean state)
Description copied from interface:IDataSetWrapper
Set field attribute restiction- Specified by:
setFieldAttrUseRestiction
in interfaceIDataSetWrapper
- Parameters:
dataSetField
- field, can't benull
feature
- feature of attribute restriction, can't benull
state
- 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
-
-