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 specifyIRule
instance.- See Also:
IRule
-
-
Constructor Summary
Constructors Constructor Description ManagingDefinition(Class<? extends ContainerComponent<?,?>> componentClass, IParameterization parameterization)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRefresherFactory(IRefresherFactory factory)
Adds the specifiedfactory
to refresher factories collection.void
addRule(IRule newRule)
Adds a rule to the managing definition.Collection<IRefresherFactory>
getRefresherFactories()
Returns the collection ofIRefresherFactory
instances.IRule
getRule()
Returns theIRule
instance ornull
.IRuleResultProcessor
getRuleResultProcessor()
ReturnsIRuleResultProcessor
instance.void
setRuleResultProcessor(IRuleResultProcessor processor)
Sets the rule result processor for the definition.-
Methods inherited from class com._1c.g5.aef2.standard.definitions.ContainerDefinition
addDefinition, addDefinition, getChildren, getLayout, removeDefinition, removeDefinition, setLayout
-
Methods inherited from class com._1c.g5.aef2.standard.definitions.AbstractDefinition
createComponent, equals, getComponentClass, getConstructor, getId, getLayoutData, getParametrization, getParent, hashCode, setComponentClass, setComponentFactory, setLayoutData, setModelFactory, setParameterization, setParent
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.aef2.standard.definitions.IComponentFactory
createComponent
-
Methods inherited from interface com._1c.g5.aef2.standard.definitions.IContainerDefinition
getChildren, getLayout
-
Methods inherited from interface com._1c.g5.aef2.standard.definitions.IDefinition
getComponentClass, getId, getLayoutData, getParametrization, getParent
-
-
-
-
Constructor Detail
-
ManagingDefinition
public ManagingDefinition(Class<? extends ContainerComponent<?,?>> componentClass, IParameterization parameterization)
Creates a new instance.- Parameters:
componentClass
- the class of the component.
-
-
Method Detail
-
getRule
public IRule getRule()
Description copied from interface:IManagingDefinition
Returns theIRule
instance ornull
.- Specified by:
getRule
in interfaceIManagingDefinition
- Returns:
- the rule instance.
-
getRefresherFactories
public Collection<IRefresherFactory> getRefresherFactories()
Description copied from interface:IManagingDefinition
Returns the collection ofIRefresherFactory
instances.- Specified by:
getRefresherFactories
in interfaceIManagingDefinition
- Returns:
- the collection of
IRefresherFactory
instances, nevernull
.
-
getRuleResultProcessor
public IRuleResultProcessor getRuleResultProcessor()
Description copied from interface:IManagingDefinition
ReturnsIRuleResultProcessor
instance.- Specified by:
getRuleResultProcessor
in interfaceIManagingDefinition
- Returns:
IRuleResultProcessor
instance ornull
.
-
addRule
public 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 aMultiRule
otherwise.- Parameters:
newRule
- the rule to add
-
addRefresherFactory
public void addRefresherFactory(IRefresherFactory factory)
Adds the specifiedfactory
to refresher factories collection.- Parameters:
factory
- theIRefresherFactory
instance, cannot benull
.
-
setRuleResultProcessor
public void setRuleResultProcessor(IRuleResultProcessor processor)
Sets the rule result processor for the definition.- Parameters:
processor
- theIRuleResultProcessor
instance, cannot benull
.
-
-