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
FieldsModifier and TypeFieldDescriptionprotected DataCompositionSchemaControlContext
protected DataSets
protected DataSetsWrapperUnion
Fields inherited from class com._1c.g5.v8.dt.dcs.dataset.DataSetWrapperBase
dataSet, fieldsTree, fieldsWrappers, fieldsWrappersByName, isDynamicList, synonyms, useRestrictions, visibilityRestrictions
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DataSetsWrapperBase
(DataSets dataSetsPage, T dataSet) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
addField
(DataSetField currentField, DataSetField field) Add fieldvoid
copyField
(DataSetField currentField, String parentPathNew) Copy fieldint
Gets number of current aliasGet current language codeGet 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 wrapperMethods inherited from class com._1c.g5.v8.dt.dcs.dataset.DataSetWrapperBase
addFieldWrapper, createFieldWrapper, createPath, fillDataSetFields, fillFieldsWrappers, getAncestorField, getChildFields, getField, getFieldName, getFieldParentPath, getFieldPath, getFieldsWrappers, getFieldSynonym, getFieldUseRestriction, getFieldVisibilityRestriction, 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, getFieldsWrappers, getFieldSynonym, getFieldUseRestriction, getFieldVisibilityRestriction, init, moveField
-
Field Details
-
dataSetsPage
-
parent
-
context
-
-
Constructor Details
-
DataSetsWrapperBase
Constructor- Parameters:
dataSetsPage
- data sets page, can't be nulldataSet
- data set, can't be null
-
-
Method Details
-
setParent
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
Description copied from interface:IDataSetsWrapper
Get parent data set wrapper- Specified by:
getParent
in interfaceIDataSetsWrapper
- Returns:
- parent wrapper if exists or
null
-
addField
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
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
Description copied from interface:IDataSetWrapper
Remove field- Specified by:
removeField
in interfaceIDataSetWrapper
- Parameters:
field
- field, can't benull
-
setFieldName
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
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
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
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
Notify parent data set about field added- Parameters:
fieldWrapper
- field wrapper, can't be null
-
notifyParentSetFieldRestriction
Notify parent data set about restriction changed- Parameters:
fieldWrapper
- field wrapper, can't be null
-
notifyParentRemoveFieldRestriction
Notify parent data set about restriction removed- Parameters:
fieldWrapper
- field wrapper, can't be null
-