Class ManagingDefinition
- java.lang.Object
- 
- com._1c.g5.aef2.standard.definitions.AbstractDefinition
- 
- com._1c.g5.aef2.standard.definitions.ContainerDefinition
- 
- com._1c.g5.aef2.standard.definitions.ManagingDefinition
 
 
 
- 
- All Implemented Interfaces:
- IComponentFactory,- IContainerDefinition,- IDefinition,- IManagingDefinition
 - Direct Known Subclasses:
- DtGranularEditorManagingDefinition
 
 public class ManagingDefinition extends ContainerDefinition implements IManagingDefinition The implementation of theIManagingDefinition. Allows to specifyIRuleinstance.- See Also:
- IRule
 
- 
- 
Constructor SummaryConstructors Constructor Description ManagingDefinition(Class<? extends ContainerComponent<?,?>> componentClass, IParameterization parameterization)Creates a new instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRefresherFactory(IRefresherFactory factory)Adds the specifiedfactoryto refresher factories collection.voidaddRule(IRule newRule)Adds a rule to the managing definition.Collection<IRefresherFactory>getRefresherFactories()Returns the collection ofIRefresherFactoryinstances.IRulegetRule()Returns theIRuleinstance ornull.IRuleResultProcessorgetRuleResultProcessor()ReturnsIRuleResultProcessorinstance.voidsetRuleResultProcessor(IRuleResultProcessor processor)Sets the rule result processor for the definition.- 
Methods inherited from class com._1c.g5.aef2.standard.definitions.ContainerDefinitionaddDefinition, addDefinition, getChildren, getLayout, removeDefinition, removeDefinition, setLayout
 - 
Methods inherited from class com._1c.g5.aef2.standard.definitions.AbstractDefinitioncreateComponent, equals, getComponentClass, getConstructor, getId, getLayoutData, getParametrization, getParent, hashCode, setComponentClass, setComponentFactory, setLayoutData, setModelFactory, setParameterization, setParent
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com._1c.g5.aef2.standard.definitions.IComponentFactorycreateComponent
 - 
Methods inherited from interface com._1c.g5.aef2.standard.definitions.IContainerDefinitiongetChildren, getLayout
 - 
Methods inherited from interface com._1c.g5.aef2.standard.definitions.IDefinitiongetComponentClass, getId, getLayoutData, getParametrization, getParent
 
- 
 
- 
- 
- 
Constructor Detail- 
ManagingDefinitionpublic ManagingDefinition(Class<? extends ContainerComponent<?,?>> componentClass, IParameterization parameterization) Creates a new instance.- Parameters:
- componentClass- the class of the component.
 
 
- 
 - 
Method Detail- 
getRulepublic IRule getRule() Description copied from interface:IManagingDefinitionReturns theIRuleinstance ornull.- Specified by:
- getRulein interface- IManagingDefinition
- Returns:
- the rule instance.
 
 - 
getRefresherFactoriespublic Collection<IRefresherFactory> getRefresherFactories() Description copied from interface:IManagingDefinitionReturns the collection ofIRefresherFactoryinstances.- Specified by:
- getRefresherFactoriesin interface- IManagingDefinition
- Returns:
- the collection of IRefresherFactoryinstances, nevernull.
 
 - 
getRuleResultProcessorpublic IRuleResultProcessor getRuleResultProcessor() Description copied from interface:IManagingDefinitionReturnsIRuleResultProcessorinstance.- Specified by:
- getRuleResultProcessorin interface- IManagingDefinition
- Returns:
- IRuleResultProcessorinstance or- null.
 
 - 
addRulepublic void addRule(IRule newRule) Adds a rule to the managing definition. If no rules were added yet, adds this rule as is, or merges the existing rule and the new rule as aMultiRuleotherwise.- Parameters:
- newRule- the rule to add
 
 - 
addRefresherFactorypublic void addRefresherFactory(IRefresherFactory factory) Adds the specifiedfactoryto refresher factories collection.- Parameters:
- factory- the- IRefresherFactoryinstance, cannot be- null.
 
 - 
setRuleResultProcessorpublic void setRuleResultProcessor(IRuleResultProcessor processor) Sets the rule result processor for the definition.- Parameters:
- processor- the- IRuleResultProcessorinstance, cannot be- null.
 
 
- 
 
-