Package com.e1c.g5.v8.dt.mw.ui
Class MovementConstructorTreeItem
java.lang.Object
com.e1c.g5.v8.dt.mw.ui.MovementConstructorTreeItem
Class that is an element of the register and document tree.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum by types of elements in trees of movements constructor -
Constructor Summary
ConstructorsConstructorDescriptionMovementConstructorTreeItem(MovementConstructorTreeItem parentElement, String name, org.eclipse.swt.graphics.Image image, MovementConstructorTreeItem.Type type) Сreates an element of the movements constructor tree , with type elementMovementConstructorTreeItem(MovementConstructorTreeItem parentElement, String name, org.eclipse.swt.graphics.Image image, MovementConstructorTreeItem.Type type, org.eclipse.emf.ecore.EObject eObject) Сreates an element of the movements constructor tree , with type element -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(MovementConstructorTreeItem treeItem) Add child in tree itemGets account Cr value.Gets account Dt value.Returns children of the elementorg.eclipse.emf.ecore.EObjectReturns field-type element e-object:TypeDescriptionfor standard attribute,BasicFeaturefor md-attribute and etc ornullfor others.org.eclipse.swt.graphics.ImagegetImage()Returns image of elementorg.eclipse.xtext.diagnostics.SeverityReturns parent of this tree elementgetText()Returns name of elementgetType()Returns type of elementReturns validate resultgetValue()Returns expression valuebooleanisMatch()Returns document section element matchvoidsetAccountCrValue(String accountCrValue) Sets account Cr value.voidsetAccountDrValue(String accountDrValue) Sets account Dr value.voidsetAccountValue(String accountValue, MovementConstructorTreeItem.Type type) Sets account value by type.voidsetChildren(Collection<MovementConstructorTreeItem> children) Sets children of the elementvoidsetIssueType(org.eclipse.xtext.diagnostics.Severity issue) Set issue typevoidsetMatch(boolean match) Set document section element matchvoidsetValidateResult(String validateValue) Sets validate result messagevoidSets expression value
-
Constructor Details
-
MovementConstructorTreeItem
public MovementConstructorTreeItem(MovementConstructorTreeItem parentElement, String name, org.eclipse.swt.graphics.Image image, MovementConstructorTreeItem.Type type, org.eclipse.emf.ecore.EObject eObject) Сreates an element of the movements constructor tree , with type element- Parameters:
parentElement- - parent element in the tree, may benullname- - name of the element in the tree ,cannot benullimage- - image of the element in the tree, cannot benulltype- - type of element in the tree, cannot benulleObject- -TypeDescriptionorBasicFeatureof the element in the tree, can benull
-
MovementConstructorTreeItem
public MovementConstructorTreeItem(MovementConstructorTreeItem parentElement, String name, org.eclipse.swt.graphics.Image image, MovementConstructorTreeItem.Type type) Сreates an element of the movements constructor tree , with type element- Parameters:
parentElement- - parent element in the tree, may benullname- - name of the element in the tree ,cannot benullimage- - image of the element in the tree, cannot benulltype- - type of element in the tree, cannot benull
-
-
Method Details
-
setChildren
Sets children of the element- Parameters:
children- - child elements in the tree, cannot benull
-
getChildren
Returns children of the element- Returns:
- child elements in the tree, cannot return
null
-
getParent
Returns parent of this tree element- Returns:
- parent of this tree element , may return
null
-
getText
Returns name of element- Returns:
- name of element, cannot return
null
-
getImage
public org.eclipse.swt.graphics.Image getImage()Returns image of element- Returns:
- image of element, cannot return
null
-
addChild
Add child in tree item- Parameters:
treeItem- - child of element, cannot benull
-
getType
Returns type of element- Returns:
- Type by type element, cannot be
null
-
getValue
Returns expression value- Returns:
- string - value , cannot be
null
-
setValue
Sets expression value- Parameters:
value- expression value , cannot benull
-
setValidateResult
Sets validate result message- Parameters:
validateValue- - validate result message,may benull
-
getValidateResult
Returns validate result- Returns:
- validate result message,may be
null
-
setIssueType
public void setIssueType(org.eclipse.xtext.diagnostics.Severity issue) Set issue type- Parameters:
issue- - issue type,may benull
-
getIssueType
public org.eclipse.xtext.diagnostics.Severity getIssueType()- Returns:
- the issue,may be
null
-
setMatch
public void setMatch(boolean match) Set document section element match- Parameters:
match- - match - item has the same type as the valuetrueor notfalse
-
isMatch
public boolean isMatch()Returns document section element match- Returns:
- - match - item has the same type as the value
trueor notfalse
-
getEObject
public org.eclipse.emf.ecore.EObject getEObject()Returns field-type element e-object:TypeDescriptionfor standard attribute,BasicFeaturefor md-attribute and etc ornullfor others.- Returns:
- field-type element e-object, can be
null
-
setAccountDrValue
Sets account Dr value.- Parameters:
accountDrValue- the account Dr value, cannot benull
-
setAccountValue
Sets account value by type.- Parameters:
accountValue- the account value, cannot benulltype- the account type, cannot benull
-
setAccountCrValue
Sets account Cr value.- Parameters:
accountCrValue- the account Cr value, cannot benull
-
getAccountDrValue
Gets account Dt value.- Parameters:
the- account Dt value, cannot benull
-
getAccountCrValue
Gets account Cr value.- Parameters:
the- account Cr value, cannot benull
-