Class AdoptedObjectRuleResultProcessor
- java.lang.Object
-
- com._1c.g5.aef2.standard.definitions.rules.StandardComponentRuleResultProcessor
-
- com._1c.g5.v8.dt.md.ui.extension.aef.rules.AdoptedObjectRuleResultProcessor
-
- All Implemented Interfaces:
IRuleResultProcessor
public final class AdoptedObjectRuleResultProcessor extends StandardComponentRuleResultProcessor
The rule result processor forStandardComponent
s that edits the adopted object feature.
It processes theAdoptedObjectComponentRuleTarget
s instances from the rule result and disables/enables the entirecomponents.
-
-
Constructor Summary
Constructors Constructor Description AdoptedObjectRuleResultProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IRuleTarget
createMatchingRuleTarget(IDefinition definition)
Creates and returns the rule target that will be used to find the match in the rule results.boolean
isRefreshRequired(IRuleResult oldResult, IRuleResult newResult)
Returnstrue
if the processor cannot update enablement or visibility and the entire component refresh is required.void
process(IComponent<?> component, IDefinition definition, IRuleResult oldRuleResult, IRuleResult newRuleResult)
Processes the givenoldRuleResult
andnewRuleResult
for the specifiedcomponent
and correspondingcomponentDefinition
.-
Methods inherited from class com._1c.g5.aef2.standard.definitions.rules.StandardComponentRuleResultProcessor
needCreateComponent
-
-
-
-
Method Detail
-
process
public void process(IComponent<?> component, IDefinition definition, IRuleResult oldRuleResult, IRuleResult newRuleResult)
Description copied from interface:IRuleResultProcessor
Processes the givenoldRuleResult
andnewRuleResult
for the specifiedcomponent
and correspondingcomponentDefinition
.- Specified by:
process
in interfaceIRuleResultProcessor
- Overrides:
process
in classStandardComponentRuleResultProcessor
- Parameters:
component
- the component, cannot benull
.definition
- the definition of the component, cannot benull
.oldRuleResult
- the old rule result to process, cannot benull
newRuleResult
- the new rule result to process, cannot benull
.
-
createMatchingRuleTarget
protected IRuleTarget createMatchingRuleTarget(IDefinition definition)
Description copied from class:StandardComponentRuleResultProcessor
Creates and returns the rule target that will be used to find the match in the rule results.- Overrides:
createMatchingRuleTarget
in classStandardComponentRuleResultProcessor
- Parameters:
definition
- the definition, cannot benull
.- Returns:
- a newly created rule target.
-
isRefreshRequired
public boolean isRefreshRequired(IRuleResult oldResult, IRuleResult newResult)
Description copied from interface:IRuleResultProcessor
Returnstrue
if the processor cannot update enablement or visibility and the entire component refresh is required.- Specified by:
isRefreshRequired
in interfaceIRuleResultProcessor
- Overrides:
isRefreshRequired
in classStandardComponentRuleResultProcessor
- Parameters:
oldResult
- the old result, cannot benull
.newResult
- the new result, cannot benull
.- Returns:
true
if the processor cannot update enablement or visibility and the entire component refresh is required.
-
-