Class AbstractDefinitionModel
java.lang.Object
com._1c.g5.aef2.validators.Validable
com._1c.g5.aef2.models.Model
com._1c.g5.aef2.standard.definitions.models.AbstractDefinitionModel
- All Implemented Interfaces:
 ICompoundModel,IModel,IDefinitionModel,IValidable
- Direct Known Subclasses:
 BmChartAxisModel,BmChartPointModel,BmChartSeriesModel,DefinitionModel,DtGranularEditorPageDefinitionModel
The abstract definition model.
It implements the basic functionality: the sub-models managing and the rule result processing.
It doesn't specify the way of getting the model objects or definition.
It implements the basic functionality: the sub-models managing and the rule result processing.
It doesn't specify the way of getting the model objects or definition.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the givenmodelto the current definition model.voidaddRuleResultListener(IRuleResultListener listener) Adds the rule result listener.voiddispose()Disposes this model.final IChangeReturns the rule result.Returns aIRuleResultProcessorinstance.protected voidhandleRuleResultChanged(IRuleResult oldRuleResult, IRuleResult newRuleResult) Handle rule result changed.voidremoveModel(IModel model) Removes the givenmodelfrom the current definition model.voidremoveRuleResultListener(IRuleResultListener listener) Removes the rule result listener.voidsetRuleResult(IRuleResult ruleResult) Sets the rule result.voidsetRuleResultProcessor(IRuleResultProcessor ruleResultProcessor) Sets the specifiedruleResultProcessorto the model.toString()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, setOnlineMethods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, getValidatorTarget, removeValidator, validate, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com._1c.g5.aef2.standard.definitions.models.IDefinitionModel
getDefinition, getObjectsMethods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, createWorkingCopy, discard, getComponent, isOnline, removeModelListener, setComponentMethods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate 
- 
Constructor Details
- 
AbstractDefinitionModel
public AbstractDefinitionModel() 
 - 
 - 
Method Details
- 
getChange
 - 
getRuleResult
Description copied from interface:IDefinitionModelReturns the rule result.- Specified by:
 getRuleResultin interfaceIDefinitionModel- Returns:
 - the rule result, never 
null. - See Also:
 
 - 
setRuleResult
Description copied from interface:IDefinitionModelSets the rule result.- Specified by:
 setRuleResultin interfaceIDefinitionModel- Parameters:
 ruleResult- the rule result, cannot benull.- See Also:
 
 - 
addRuleResultListener
Description copied from interface:IDefinitionModelAdds the rule result listener.- Specified by:
 addRuleResultListenerin interfaceIDefinitionModel- Parameters:
 listener- the listener to add, cannot benull.
 - 
removeRuleResultListener
Description copied from interface:IDefinitionModelRemoves the rule result listener.- Specified by:
 removeRuleResultListenerin interfaceIDefinitionModel- Parameters:
 listener- the listener to remove, cannot benull.
 - 
addModel
Description copied from interface:IDefinitionModelAdds the givenmodelto the current definition model.- Specified by:
 addModelin interfaceIDefinitionModel- Parameters:
 model- the model to add, cannot benull.
 - 
removeModel
Description copied from interface:IDefinitionModelRemoves the givenmodelfrom the current definition model.- Specified by:
 removeModelin interfaceIDefinitionModel- Parameters:
 model- the model to remove, cannot benull.
 - 
dispose
public void dispose()Description copied from interface:IModelDisposes this model. - 
getModels
- Specified by:
 getModelsin interfaceICompoundModel- Returns:
 - the models this compound model contains.
 
 - 
setRuleResultProcessor
Description copied from interface:IDefinitionModelSets the specifiedruleResultProcessorto the model.- Specified by:
 setRuleResultProcessorin interfaceIDefinitionModel- Parameters:
 ruleResultProcessor- theIRuleResultProcessorinstance, cannot benull.
 - 
getRuleResultProcessor
Description copied from interface:IDefinitionModelReturns aIRuleResultProcessorinstance.- Specified by:
 getRuleResultProcessorin interfaceIDefinitionModel- Returns:
 IRuleResultProcessorinstance ornull.
 - 
toString
 - 
handleRuleResultChanged
Handle rule result changed. It notifies theIRuleResultListeners that are added to the model.- Parameters:
 oldRuleResult- the old rule result, cannot benull.newRuleResult- the new rule result, cannot benull.
 
 -