Package com.e1c.g5.v8.dt.mw.ui.register
Class RegisterSection
- java.lang.Object
-
- com.e1c.g5.v8.dt.mw.ui.register.RegisterSection
-
public class RegisterSection extends Object
Movements constructor registers section. Displays registers in a tree.
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRegisters()
Add registers to register treevoid
autoFillFields()
Automaticly filling fields registersvoid
clearRegisterFields()
Clear fields registersvoid
clearSelectedFields(List<MovementConstructorTreeItem> items)
Clear selected fieldsvoid
convertToComplexAction(int count)
Convert last n action to complex actionList<Fields>
createFillingFields()
Create filling fields by register treeFields
createFillingFields(MovementConstructorTreeItem treeItem)
Creates Fields used treeItem from register sectionvoid
deleteSelectedRegisters()
Delete selected registersvoid
fillSection(List<Fields> inputFields)
Fills register sectionboolean
getSortEnabled()
Return enabled sortTreeViewer
getTreeViewer()
Returns 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 Detail
-
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 Detail
-
getTreeViewer
public TreeViewer getTreeViewer()
Returns register tree viewer- Returns:
- - register tree viewer, may return
null
-
fillSection
public void fillSection(List<Fields> inputFields)
Fills register section- Parameters:
inputFields
- - input registers data,cannot benull
-
setValue
public boolean setValue(MovementConstructorTreeItem 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
-
createFillingFields
public List<Fields> 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
public void clearSelectedFields(List<MovementConstructorTreeItem> items)
Clear selected fields- Parameters:
items
- - clearing fields, cannot benull
-
clearRegisterFields
public void clearRegisterFields()
Clear fields registers
-
deleteSelectedRegisters
public void deleteSelectedRegisters()
Delete selected registers
-
createFillingFields
public Fields createFillingFields(MovementConstructorTreeItem treeItem)
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
-
-