Class PredefinedCalculationTypeCalculationBaseModel
java.lang.Object
com._1c.g5.aef2.validators.Validable
com._1c.g5.aef2.models.Model
com._1c.g5.aef2.models.EditableModel
com._1c.g5.v8.dt.internal.md.ui.editors.pages.predefineddata.PredefinedCalculationTypeCalculationBaseModel
- All Implemented Interfaces:
IEditableModel
,IModel
,IValidable
,IModelApiAwareModel
,IPredefinedCalculationTypeCalculationBaseModel
,IDynamicTreeModel<org.eclipse.emf.ecore.EObject>
public class PredefinedCalculationTypeCalculationBaseModel
extends EditableModel
implements IPredefinedCalculationTypeCalculationBaseModel
IPredefinedCalculationTypeCalculationBaseModel
implementation.-
Constructor Summary
ConstructorsConstructorDescriptionPredefinedCalculationTypeCalculationBaseModel
(IConfigurationProvider configurationProvider, ChartOfCalculationTypes calculationType, org.eclipse.emf.ecore.EReference feature, Predicate<ChartOfCalculationTypes> predicate) Creates new model.PredefinedCalculationTypeCalculationBaseModel
(IConfigurationProvider configurationProvider, ChartOfCalculationTypes calculationType, org.eclipse.emf.ecore.EReference feature, Predicate<ChartOfCalculationTypes> predicate, ChartOfCalculationTypesPredefinedItem predefinedCalculationType) Creates new model. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposes this model.org.eclipse.emf.ecore.EStructuralFeature
Returns calculation base feature (base, leading, displacing calculation types).getInput()
Returns the model API.Returns owner - selected predefined calculation type.void
setModelApi
(IModelApi modelApi) Sets the specified API to the model.void
setPredefinedCalculationType
(ChartOfCalculationTypesPredefinedItem predefinedCalculationType) Sets predefined calculation type.Methods inherited from class com._1c.g5.aef2.models.EditableModel
isEditable, setEditable
Methods inherited from class com._1c.g5.aef2.models.Model
addModelListener, beginExternalUpdate, checkOffline, checkOnline, commit, createWorkingCopy, discard, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, isOnline, notifyModelChanged, notifyModelCommitted, removeModelListener, setComponent, setOnline, toString
Methods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, getValidatorTarget, removeValidator, validate, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com._1c.g5.aef2.models.IEditableModel
isEditable, setEditable
Methods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, createWorkingCopy, discard, getComponent, isOnline, removeModelListener, setComponent
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
Constructor Details
-
PredefinedCalculationTypeCalculationBaseModel
public PredefinedCalculationTypeCalculationBaseModel(IConfigurationProvider configurationProvider, ChartOfCalculationTypes calculationType, org.eclipse.emf.ecore.EReference feature, Predicate<ChartOfCalculationTypes> predicate) Creates new model.- Parameters:
feature
- the base calculation types feature (base, leading, displacing), cannot benull
predicate
- the chart of calculation types content provider predicate, can benull
configurationProvider
- , the configuration provider, cannot benull
calculationType
- , the calculation type, cannot benull
-
PredefinedCalculationTypeCalculationBaseModel
public PredefinedCalculationTypeCalculationBaseModel(IConfigurationProvider configurationProvider, ChartOfCalculationTypes calculationType, org.eclipse.emf.ecore.EReference feature, Predicate<ChartOfCalculationTypes> predicate, ChartOfCalculationTypesPredefinedItem predefinedCalculationType) Creates new model.- Parameters:
configurationProvider
- , the configuration provider, cannot benull
calculationType
- , the calculation type, cannot benull
feature
- the base calculation types feature (base, leading, displacing), cannot benull
predicate
- the chart of calculation types content provider predicate, can benull
predefinedCalculationType
- the predefined calculation type - owner, can benull
-
-
Method Details
-
getChange
-
getInput
- Specified by:
getInput
in interfaceIDynamicTreeModel<org.eclipse.emf.ecore.EObject>
- Returns:
- the input for content provider
-
dispose
public void dispose()Description copied from interface:IModel
Disposes this model. -
getTreeContentProvider
- Specified by:
getTreeContentProvider
in interfaceIDynamicTreeModel<org.eclipse.emf.ecore.EObject>
- Returns:
- the domain model content provider
-
getCheckStateProvider
- Specified by:
getCheckStateProvider
in interfaceIDynamicTreeModel<org.eclipse.emf.ecore.EObject>
- Returns:
- the
ICheckStateProvider
-
getLabelProvider
- Specified by:
getLabelProvider
in interfaceIDynamicTreeModel<org.eclipse.emf.ecore.EObject>
- Returns:
- the
ILabelProvider
-
getPredefinedCalculationType
Description copied from interface:IPredefinedCalculationTypeCalculationBaseModel
Returns owner - selected predefined calculation type.- Specified by:
getPredefinedCalculationType
in interfaceIPredefinedCalculationTypeCalculationBaseModel
- Returns:
- the selected predefined calculation type, can be
null
-
getFeature
public org.eclipse.emf.ecore.EStructuralFeature getFeature()Description copied from interface:IPredefinedCalculationTypeCalculationBaseModel
Returns calculation base feature (base, leading, displacing calculation types).- Specified by:
getFeature
in interfaceIPredefinedCalculationTypeCalculationBaseModel
- Returns:
- the calculation base feature, cannot be
null
-
getModelApi
Description copied from interface:IModelApiAwareModel
Returns the model API.- Specified by:
getModelApi
in interfaceIModelApiAwareModel
- Returns:
- the model API or
null
if it is not set.
-
setPredefinedCalculationType
public void setPredefinedCalculationType(ChartOfCalculationTypesPredefinedItem predefinedCalculationType) Description copied from interface:IPredefinedCalculationTypeCalculationBaseModel
Sets predefined calculation type.- Specified by:
setPredefinedCalculationType
in interfaceIPredefinedCalculationTypeCalculationBaseModel
- Parameters:
predefinedCalculationType
- the predefined calculation type, can benull
.
-
setModelApi
Description copied from interface:IModelApiAwareModel
Sets the specified API to the model.- Specified by:
setModelApi
in interfaceIModelApiAwareModel
- Parameters:
modelApi
- the API, can benull
.
-