Package com.e1c.g5.v8.dt.gsw.ui.creating
Class CreatingObjectSection
- java.lang.Object
-
- com.e1c.g5.v8.dt.gsw.ui.creating.CreatingObjectSection
-
public class CreatingObjectSection extends Object
Creating object section. Displays this object in a tree.
-
-
Constructor Summary
Constructors Constructor Description CreatingObjectSection(org.eclipse.swt.widgets.Composite parent, BasicDbObject creatingObject, BasicObjectsSection basicObjectsSection, ModuleProcessor moduleProcessor, boolean canEdit)
Сreates a creating object section.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activateSearch()
Activate search box for creating object treevoid
addObjects(Collection<BasicDbObject> result)
Add new basic objects itemsvoid
autoFillFields()
Automaticly filling fields basic objectsvoid
clearObjectFields()
Clear fieldsvoid
clearSelectedFields(List<GenerationSettingsConstructorTreeItem> items)
Clear selected fieldsvoid
collapseAll()
Realized collapse all actionvoid
convertToComplexAction(int count)
Convert last n action to complex actionList<Fields>
createFillingFields()
Creates Fields used treeItem from creating object sectionvoid
expandAll()
Realized expand all actionvoid
fillSection(List<Fields> inputFields)
Fills creating object sectionboolean
getSortEnabled()
Return enabled sortTreeViewer
getTreeViewer()
Returns created object treevoid
redo()
Repeats cancelled by user actionvoid
setSortEnabled(boolean isSortEnabled)
Set enabled sortvoid
setTabularSectionData(GenerationSettingsConstructorTreeItem treeItem, String value)
Filling tabular section by DND datavoid
setTypeMatcher(GenerationSettingsConstructorValidator movementCostructorValidator)
Set type matcherboolean
setValue(GenerationSettingsConstructorTreeItem treeItem, String expression)
Set value in register tree by register sectionvoid
undo()
Сancels the action performed by the user
-
-
-
Constructor Detail
-
CreatingObjectSection
public CreatingObjectSection(org.eclipse.swt.widgets.Composite parent, BasicDbObject creatingObject, BasicObjectsSection basicObjectsSection, ModuleProcessor moduleProcessor, boolean canEdit)
Сreates a creating object section.- Parameters:
parent
- - external composite, cannot benull
creatingObject
- - creating object for which the generation settings constructor opens,cannot benull
basicObjectsSection
- - basic objects tree by generation settings constructor, cannot benull
moduleProcessor
- - generation settings constructor module processor , if not null , creating object section will create with validate, may benull
canEdit
- - if creating object can edittrue
, 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- Returns:
- 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- Parameters:
inputFields
- - input objects data,cannot benull
-
setValue
public boolean setValue(GenerationSettingsConstructorTreeItem treeItem, String expression)
Set value in register tree by register section- Parameters:
treeItem
- - changed element, cannot benull
expression
- - value by expression, cannot benull
- Returns:
true
if successfull,false
otherwise
-
setTypeMatcher
public void setTypeMatcher(GenerationSettingsConstructorValidator movementCostructorValidator)
Set type matcher- Parameters:
movementCostructorValidator
- - movement constructor validator, maynull
-
setTabularSectionData
public void setTabularSectionData(GenerationSettingsConstructorTreeItem treeItem, String value)
Filling tabular section by DND data- Parameters:
treeItem
- - tabular section item , cannot benull
value
- - data , cannot benull
-
getSortEnabled
public boolean getSortEnabled()
Return enabled sort- Returns:
- isSortEnabled
-
convertToComplexAction
public void convertToComplexAction(int count)
Convert last n action to complex action- Parameters:
count
- - n action
-
addObjects
public void addObjects(Collection<BasicDbObject> result)
Add new basic objects items- Parameters:
result
- - basic objects
-
autoFillFields
public void autoFillFields()
Automaticly filling fields basic objects
-
clearSelectedFields
public void clearSelectedFields(List<GenerationSettingsConstructorTreeItem> items)
Clear selected fields- Parameters:
items
- - clearing fields, cannot benull
-
clearObjectFields
public void clearObjectFields()
Clear fields
-
setSortEnabled
public void setSortEnabled(boolean isSortEnabled)
Set enabled sort- Parameters:
isSortEnabled
- - enabled sort
-
undo
public void undo()
Сancels the action performed by the user
-
redo
public void redo()
Repeats cancelled by user action
-
-