Class AvailableFields

    • Constructor Detail

      • AvailableFields

        public AvailableFields​(org.eclipse.swt.widgets.Composite parent,
                               int style,
                               IDcsSettingsProvider settingsProvider,
                               org.eclipse.emf.ecore.EObject modelObject,
                               DcsAvailableSettingsSourceForSchema.FieldUse use,
                               boolean toolBarVertical,
                               boolean inDialog,
                               boolean withUserFields,
                               boolean editable)
        Constructor
        Parameters:
        parent - parent composite, can't be null
        style - style
        settingsProvider - IDcsSettingsProvider object, can't be null
        modelObject - model object (DataCompositionSchema or DataCompositionSettings), can't be null
        use - fields variant, can't be null
        toolBarVertical - whether toolbar is vertical
        inDialog - whether control creating in dialog
        withUserFields - with user fields
        editable - the editable state, true if this fields is editable, false otherwise
      • AvailableFields

        public AvailableFields​(org.eclipse.swt.widgets.Composite parent,
                               int style)
        Constructor (for Filter)
        Parameters:
        parent - parent composite, can't be null
        style - swt style
    • Method Detail

      • init

        protected void init​(org.eclipse.swt.widgets.Composite parent,
                            boolean toolBarVertical,
                            IDcsSettingsProvider settingsProvider,
                            org.eclipse.emf.ecore.EObject modelObject,
                            DcsAvailableSettingsSourceForSchema.FieldUse use,
                            boolean inDialog,
                            boolean withUserFields,
                            boolean editable)
        Initialize
        Parameters:
        parent - parent composite, can't be null
        style - swt style
        toolBarVertical - is toolbar vertical
        settingsProvider - IDcsSettingsProvider object, can't be null
        modelObject - model object
        use - fields variant, can't be null
        inDialog - show available fields viewer
        inDialog - whether control created in dialog
        editable - the editable state, true if this fields is editable, false otherwise
      • notify

        public void notify​(DcsEvent event)
        Description copied from interface: IDcsListener
        Сообщить о событии
        Specified by:
        notify in interface IDcsListener
        Parameters:
        event - событие
      • getSelectedAvailableFields

        public List<DcsAvailableFieldInfo> getSelectedAvailableFields()
        Get selected available fields
        Returns:
        list of selected available fields, never null
      • getDest

        public Object getDest()
        Получить объект для добавления новых элементов
        Returns:
        объект
      • getAvailableField

        public DcsAvailableFieldInfo getAvailableField​(String name)
        Получить информацию о доступном поле
        Parameters:
        name - имя
        Returns:
        информация
      • getSettingsProvider

        public IDcsSettingsProvider getSettingsProvider()
        Get settings provider object
        Returns:
        settings provider object
      • getEditingContext

        public IBmEditingContext getEditingContext()
        Returns BM editing context
        Returns:
        BM editing context
      • isEditable

        public boolean isEditable()
        Checks if this fields is editable.
        Returns:
        true if this fields is editable, false otherwise
      • addModelChangedListener

        protected void addModelChangedListener​(IDcsModelChangedListener listener)
        Adds DCS model listener.
        Parameters:
        listener - the listener
      • createViewerWithToolbar

        protected abstract ColumnViewer createViewerWithToolbar​(org.eclipse.swt.widgets.Composite parent)