Package com.e1c.g5.v8.dt.mw.ui.register
Class RegisterSection
java.lang.Object
com.e1c.g5.v8.dt.mw.ui.register.RegisterSection
Movements constructor registers section. Displays registers in a tree.
-
Constructor Summary
ConstructorsConstructorDescriptionRegisterSection
(org.eclipse.swt.widgets.Composite parent, Document document, TreeViewer documentTree, ModuleProcessor moduleProcessor, IBmEditingContext bmEditingContext, Configuration configuration, boolean canEdit, MdTypeUtil mdTypeUtil, IEObjectProvider typeProvider, DerivedStateComputerUtil derivedStateComputerUtil) Сreates a register section. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add registers to register treevoid
Automaticly filling fields registersvoid
Clear fields registersvoid
Clear selected fieldsvoid
convertToComplexAction
(int count) Convert last n action to complex actionCreate filling fields by register treeCreates Fields used treeItem from register sectionvoid
Delete selected registersvoid
fillSection
(List<Fields> inputFields) Fills register sectionboolean
Return enabled sortReturns register tree viewervoid
redo()
Repeats cancelled by user actionvoid
setSortEnabled
(boolean isSortEnabled) Set enabled sortboolean
setValue
(MovementConstructorTreeItem treeItem, String expression) Set value in register tree by register sectionvoid
undo()
Сancels the action performed by the user
-
Constructor Details
-
RegisterSection
public RegisterSection(org.eclipse.swt.widgets.Composite parent, Document document, TreeViewer documentTree, ModuleProcessor moduleProcessor, IBmEditingContext bmEditingContext, Configuration configuration, boolean canEdit, MdTypeUtil mdTypeUtil, IEObjectProvider typeProvider, DerivedStateComputerUtil derivedStateComputerUtil) Сreates a register section.- Parameters:
parent
- - external composite, cannot benull
document
- - document for which the movements constructor opens,cannot benull
documentTree
- - document tree by movements constructor, cannot benull
moduleProcessor
- - movement constructor module processor , if not null , register section will create with validate, may benull
configuration
- - current configuration , cannot benull
bmEditingContext
- - editing context for submitting tasks , cannot benull
canEdit
- - if document can edittrue
, else
false
mdTypeUtil
- - the md-type util, cannot benull
typeProvider
- - the type provider, cannot benull
derivedStateComputerUtil
- - the derived state computer util, cannot benull
-
-
Method Details
-
getTreeViewer
Returns register tree viewer- Returns:
- - register tree viewer, may return
null
-
fillSection
Fills register section- Parameters:
inputFields
- - input registers data,cannot benull
-
setValue
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
-
createFillingFields
Create filling fields by register tree- Returns:
- - list register data,cannot
null
-
getSortEnabled
public boolean getSortEnabled()Return enabled sort- Returns:
- isSortEnabled
-
addRegisters
public void addRegisters()Add registers to register tree -
convertToComplexAction
public void convertToComplexAction(int count) Convert last n action to complex action- Parameters:
count
- - n action
-
autoFillFields
public void autoFillFields()Automaticly filling fields registers -
clearSelectedFields
Clear selected fields- Parameters:
items
- - clearing fields, cannot benull
-
clearRegisterFields
public void clearRegisterFields()Clear fields registers -
deleteSelectedRegisters
public void deleteSelectedRegisters()Delete selected registers -
createFillingFields
Creates Fields used treeItem from register section- Parameters:
treeItem
- - current tree item,cannot benull
- Returns:
- - fields,cannot be
null
-
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
-