Interface IDefinitionModel
-
- All Superinterfaces:
ICompoundModel
,IModel
,IValidable
- All Known Subinterfaces:
IChartAxisModel
- All Known Implementing Classes:
AbstractDefinitionModel
,DefinitionModel
,DtGranularEditorPageDefinitionModel
public interface IDefinitionModel extends ICompoundModel
The model that is used by components that creates their child byIDefinition
s.
The definition model extends theICompoundModel
interface. So it keeps the models created by corresponding component.- See Also:
ICompoundModel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addModel(IModel model)
Adds the givenmodel
to the current definition model.void
addRuleResultListener(IRuleResultListener listener)
Adds the rule result listener.IContainerDefinition
getDefinition()
Returns the container definition.Collection<Object>
getObjects()
Returns the collection of editing objects.IRuleResult
getRuleResult()
Returns the rule result.IRuleResultProcessor
getRuleResultProcessor()
Returns aIRuleResultProcessor
instance.void
removeModel(IModel model)
Removes the givenmodel
from the current definition model.void
removeRuleResultListener(IRuleResultListener listener)
Removes the rule result listener.void
setRuleResult(IRuleResult ruleResult)
Sets the rule result.void
setRuleResultProcessor(IRuleResultProcessor ruleResultProcessor)
Sets the specifiedruleResultProcessor
to the model.-
Methods inherited from interface com._1c.g5.aef2.models.ICompoundModel
getModels
-
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
-
-
-
-
Method Detail
-
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:
IRuleResult
-
setRuleResult
void setRuleResult(IRuleResult ruleResult)
Sets the rule result.- Parameters:
ruleResult
- the rule result, cannot benull
.- See Also:
IRuleResult
-
addRuleResultListener
void addRuleResultListener(IRuleResultListener listener)
Adds the rule result listener.- Parameters:
listener
- the listener to add, cannot benull
.
-
removeRuleResultListener
void removeRuleResultListener(IRuleResultListener listener)
Removes the rule result listener.- Parameters:
listener
- the listener to remove, cannot benull
.
-
getRuleResultProcessor
IRuleResultProcessor getRuleResultProcessor()
Returns aIRuleResultProcessor
instance.- Returns:
IRuleResultProcessor
instance ornull
.
-
setRuleResultProcessor
void setRuleResultProcessor(IRuleResultProcessor ruleResultProcessor)
Sets the specifiedruleResultProcessor
to the model.- Parameters:
ruleResultProcessor
- theIRuleResultProcessor
instance, cannot benull
.
-
addModel
void addModel(IModel model)
Adds the givenmodel
to the current definition model.- Parameters:
model
- the model to add, cannot benull
.
-
removeModel
void removeModel(IModel model)
Removes the givenmodel
from the current definition model.- Parameters:
model
- the model to remove, cannot benull
.
-
-