|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.ecp.view.internal.rule.RuleRegistry<T>
T - the actual Rule typepublic class RuleRegistry<T extends Rule>
Rule registry that maintains which VElements
are affected if a setting is changed.
| Constructor Summary | |
|---|---|
RuleRegistry(ViewModelContext context)
Default constructor. |
|
| Method Summary | |
|---|---|
Map<T,VElement> |
getAffectedRenderables(UniqueSetting setting)
Returns all rules that would be affected if the value of given setting is changed. |
Set<UniqueSetting> |
getSettings()
Returns the settings of this registry. |
Set<UniqueSetting> |
register(VElement renderable,
T rule,
Condition condition,
org.eclipse.emf.ecore.EObject domainModel)
Creates a setting from the given EObject and the LeafCondition and register it with the
VElement. |
VElement |
removeCondition(Condition condition)
Removes the given condition from the registry. |
void |
removeRenderable(VElement renderable)
Removes the given VElement from the registry. |
VElement |
removeRule(T rule)
Removes the given rule from the registry. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RuleRegistry(ViewModelContext context)
context - the view model context of the RuleService using this registry| Method Detail |
|---|
public Set<UniqueSetting> register(VElement renderable,
T rule,
Condition condition,
org.eclipse.emf.ecore.EObject domainModel)
EObject and the LeafCondition and register it with the
VElement.
renderable - the VElement to be updated in case the condition changesrule - the parent rule holding the LeafConditioncondition - contains the attribute that the condition is depending ondomainModel - the domain object that owns the attribute possibly being
changed
UniqueSettingspublic VElement removeRule(T rule)
rule - the rule to be removed
VElement that belonged to the removed rulepublic void removeRenderable(VElement renderable)
VElement from the registry.
renderable - the renderable to be removedpublic VElement removeCondition(Condition condition)
condition - the condition to be removed
VElement that belonged to the removed conditionpublic Set<UniqueSetting> getSettings()
public Map<T,VElement> getAffectedRenderables(UniqueSetting setting)
setting - the setting
VElements that are affected of the setting change
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||