Class CreatingObjectSection

  • public class CreatingObjectSection
    extends Object
    Creating object section. Displays this object in a tree.
    • Constructor Detail

      • CreatingObjectSection

        public CreatingObjectSection​(org.eclipse.swt.widgets.Composite parent,
                                     BasicDbObject creatingObject,
                                     BasicObjectsSection basicObjectsSection,
                                     ModuleProcessor moduleProcessor,
                                     boolean canEdit)
        Сreates a creating object section.
        parent - - external composite, cannot be null
        creatingObject - - creating object for which the generation settings constructor opens,cannot be null
        basicObjectsSection - - basic objects tree by generation settings constructor, cannot be null
        moduleProcessor - - generation settings constructor module processor , if not null , creating object section will create with validate, may be null
        canEdit - - if creating object can edit true , else false
    • Method Detail

      • expandAll

        public void expandAll()
        Realized expand all action
      • collapseAll

        public void collapseAll()
        Realized collapse all action
      • getTreeViewer

        public TreeViewer getTreeViewer()
        Returns created object tree
        created object tree, may return null
      • activateSearch

        public void activateSearch()
        Activate search box for creating object tree
      • fillSection

        public void fillSection​(List<Fields> inputFields)
        Fills creating object section
        inputFields - - input objects data,cannot be null
      • setValue

        public boolean setValue​(GenerationSettingsConstructorTreeItem treeItem,
                                String expression)
        Set value in register tree by register section
        treeItem - - changed element, cannot be null
        expression - - value by expression, cannot be null
        true if successfull, false otherwise
      • setTypeMatcher

        public void setTypeMatcher​(GenerationSettingsConstructorValidator movementCostructorValidator)
        Set type matcher
        movementCostructorValidator - - movement constructor validator, may null
      • setTabularSectionData

        public void setTabularSectionData​(GenerationSettingsConstructorTreeItem treeItem,
                                          String value)
        Filling tabular section by DND data
        treeItem - - tabular section item , cannot be null
        value - - data , cannot be null
      • getSortEnabled

        public boolean getSortEnabled()
        Return enabled sort
      • convertToComplexAction

        public void convertToComplexAction​(int count)
        Convert last n action to complex action
        count - - n action
      • addObjects

        public void addObjects​(Collection<BasicDbObject> result)
        Add new basic objects items
        result - - basic objects
      • autoFillFields

        public void autoFillFields()
        Automaticly filling fields basic objects
      • clearObjectFields

        public void clearObjectFields()
        Clear fields
      • setSortEnabled

        public void setSortEnabled​(boolean isSortEnabled)
        Set enabled sort
        isSortEnabled - - enabled sort
      • undo

        public void undo()
        Сancels the action performed by the user
      • redo

        public void redo()
        Repeats cancelled by user action
      • createFillingFields

        public List<Fields> createFillingFields()
        Creates Fields used treeItem from creating object section
        fields,cannot be null