Class PredefinedCalculationTypeModel
java.lang.Object
com._1c.g5.aef2.validators.Validable
com._1c.g5.aef2.models.Model
com._1c.g5.aef2.models.CompoundModel
com._1c.g5.v8.dt.internal.md.ui.editors.pages.predefineddata.PredefinedCalculationTypeModel
- All Implemented Interfaces:
ICompoundModel
,IEditableModel
,IModel
,IValidable
,IModelApiAwareModel
,IPredefinedCalculationTypeModel
public class PredefinedCalculationTypeModel
extends CompoundModel
implements IPredefinedCalculationTypeModel
IPredefinedCalculationTypeModel
implementation.-
Constructor Summary
ConstructorsConstructorDescriptionPredefinedCalculationTypeModel
(ChartOfCalculationTypes calculationType, IConfigurationProvider configurationProvider) Creates new model. -
Method Summary
Modifier and TypeMethodDescriptionReturns base calculation types model.Returns displacing calculation types model.Returns leading calculation types model.Returns the model API.Returns predefined calculation type.boolean
Checks if this model is editable.void
setEditable
(boolean editable) Sets model editable state.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.CompoundModel
addModel, dispose, getChange, getModels, isOnline, setComponent, validate
Methods inherited from class com._1c.g5.aef2.models.Model
addModelListener, beginExternalUpdate, checkOffline, checkOnline, commit, createWorkingCopy, discard, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, notifyModelChanged, notifyModelCommitted, removeModelListener, setOnline, toString
Methods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, getValidatorTarget, removeValidator, 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.IModel
addModelListener, commit, createWorkingCopy, discard, dispose, getChange, getComponent, isOnline, removeModelListener, setComponent
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
Constructor Details
-
PredefinedCalculationTypeModel
public PredefinedCalculationTypeModel(ChartOfCalculationTypes calculationType, IConfigurationProvider configurationProvider) Creates new model.- Parameters:
calculationType
- , the calculation type, cannot benull
configurationProvider
- , the configuration provider, cannot benull
-
-
Method Details
-
getBaseCalculationTypesModel
Description copied from interface:IPredefinedCalculationTypeModel
Returns base calculation types model.- Specified by:
getBaseCalculationTypesModel
in interfaceIPredefinedCalculationTypeModel
- Returns:
- the base calculation types model, cannot be
null
-
getLeadingCalculationTypesModel
Description copied from interface:IPredefinedCalculationTypeModel
Returns leading calculation types model.- Specified by:
getLeadingCalculationTypesModel
in interfaceIPredefinedCalculationTypeModel
- Returns:
- the leading calculation types model, cannot be
null
-
getDisplacingCalculationTypesModel
Description copied from interface:IPredefinedCalculationTypeModel
Returns displacing calculation types model.- Specified by:
getDisplacingCalculationTypesModel
in interfaceIPredefinedCalculationTypeModel
- Returns:
- the displacing calculation types model, cannot be
null
-
getPredefinedCalculationType
Description copied from interface:IPredefinedCalculationTypeModel
Returns predefined calculation type.- Specified by:
getPredefinedCalculationType
in interfaceIPredefinedCalculationTypeModel
- Returns:
- the predefined calculation type, can be
null
.
-
setPredefinedCalculationType
public void setPredefinedCalculationType(ChartOfCalculationTypesPredefinedItem predefinedCalculationType) Description copied from interface:IPredefinedCalculationTypeModel
Sets predefined calculation type.- Specified by:
setPredefinedCalculationType
in interfaceIPredefinedCalculationTypeModel
- 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
.
-
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.
-
isEditable
public boolean isEditable()Description copied from interface:IEditableModel
Checks if this model is editable.- Specified by:
isEditable
in interfaceIEditableModel
- Returns:
true
if this model is editable,false
otherwise
-
setEditable
public void setEditable(boolean editable) Description copied from interface:IEditableModel
Sets model editable state.- Specified by:
setEditable
in interfaceIEditableModel
- Parameters:
editable
- the editable state,true
if this model is editable,false
otherwise
-