Interface IDefinitionModel
- All Superinterfaces:
ICompoundModel,IModel,IValidable
- All Known Subinterfaces:
IChartAxisModel,IChartPointModel,IChartSeriesModel
- All Known Implementing Classes:
AbstractDefinitionModel,BmChartAxisModel,BmChartPointModel,BmChartSeriesModel,DefinitionModel,DtGranularEditorPageDefinitionModel,LabelAreaModel
The model that is used by components that creates their child by
The definition model extends the
IDefinitions.
The definition model extends the
ICompoundModel interface. So it keeps the models created by corresponding
component.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the givenmodelto the current definition model.voidaddRuleResultListener(IRuleResultListener listener) Adds the rule result listener.Returns the container definition.Returns the collection of editing objects.Returns the rule result.Returns aIRuleResultProcessorinstance.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.Methods inherited from interface com._1c.g5.aef2.models.ICompoundModel
getModelsMethods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, createWorkingCopy, discard, dispose, getChange, getComponent, isOnline, removeModelListener, setComponentMethods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
Method Details
-
getDefinition
IContainerDefinition getDefinition()Returns the container definition.- Returns:
- the container definition, can be
null.
-
getObjects
Collection<Object> getObjects()Returns the collection of editing objects.- Returns:
- the collection, never
null.
-
getRuleResult
IRuleResult getRuleResult()Returns the rule result.- Returns:
- the rule result, never
null. - See Also:
-
setRuleResult
Sets the rule result.- Parameters:
ruleResult- the rule result, cannot benull.- See Also:
-
addRuleResultListener
Adds the rule result listener.- Parameters:
listener- the listener to add, cannot benull.
-
removeRuleResultListener
Removes the rule result listener.- Parameters:
listener- the listener to remove, cannot benull.
-
getRuleResultProcessor
IRuleResultProcessor getRuleResultProcessor()Returns aIRuleResultProcessorinstance.- Returns:
IRuleResultProcessorinstance ornull.
-
setRuleResultProcessor
Sets the specifiedruleResultProcessorto the model.- Parameters:
ruleResultProcessor- theIRuleResultProcessorinstance, cannot benull.
-
addModel
Adds the givenmodelto the current definition model.- Parameters:
model- the model to add, cannot benull.
-
removeModel
Removes the givenmodelfrom the current definition model.- Parameters:
model- the model to remove, cannot benull.
-