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
  • Field Details

  • Constructor Details

    • DataSetsWrapperBase

      protected DataSetsWrapperBase(DataSets dataSetsPage, T dataSet)
      Constructor
      Parameters:
      dataSetsPage - data sets page, can't be null
      dataSet - data set, can't be null
  • Method Details

    • setParent

      public void setParent(DataSetsWrapperUnion parent)
      Description copied from interface: IDataSetsWrapper
      Set parent data set wrapper
      Specified by:
      setParent in interface IDataSetsWrapper
      Parameters:
      parent - parent wrapper, can be null 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 interface IDataSetsWrapper
      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 interface IDataSetWrapper
      Overrides:
      addField in class DataSetWrapperBase<T extends DataSet>
      Parameters:
      currentField - current field, can be null
      field - field, can't be null
    • copyField

      public void copyField(DataSetField currentField, String parentPathNew)
      Description copied from interface: IDataSetWrapper
      Copy field
      Specified by:
      copyField in interface IDataSetWrapper
      Parameters:
      currentField - field, can't be null
      parentPathNew - destination folder path or null (empty) for root
    • removeField

      public void removeField(DataSetField field)
      Description copied from interface: IDataSetWrapper
      Remove field
      Specified by:
      removeField in interface IDataSetWrapper
      Parameters:
      field - field, can't be null
    • setFieldName

      public void setFieldName(DataSetField field, String name)
      Description copied from interface: IDataSetWrapper
      Set 'Field' property of field
      Specified by:
      setFieldName in interface IDataSetWrapper
      Parameters:
      field - field, can't be null
      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 interface IDataSetWrapper
      Parameters:
      field - field, can't be null
      path - value of 'Data path' property, can't be null
    • setFieldTitle

      public void setFieldTitle(DataSetField field, LocalString title)
      Description copied from interface: IDataSetWrapper
      Set 'Title' property of field
      Specified by:
      setFieldTitle in interface IDataSetWrapper
      Parameters:
      field - field, can't be null
      title - value of 'Title' property, can't be null
    • getCurrentLanguageCode

      public String getCurrentLanguageCode()
      Description copied from interface: IDataSetWrapper
      Get current language code
      Specified by:
      getCurrentLanguageCode in interface IDataSetWrapper
      Returns:
      language code, never null
    • getCurrentAlias

      public int getCurrentAlias()
      Description copied from interface: IDataSetWrapper
      Gets number of current alias
      Specified by:
      getCurrentAlias in interface IDataSetWrapper
      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 interface IDataSetWrapper
      Parameters:
      dataSetField - field, can't be null
      feature - feature of restriction, can't be null
      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 interface IDataSetWrapper
      Parameters:
      dataSetField - field, can't be null
      feature - feature of attribute restriction, can't be null
      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