public class RuleService extends Object implements ViewModelService, EMFFormsContextListener
VElement
.Constructor and Description |
---|
RuleService()
Instantiates the rule service.
|
Modifier and Type | Method and Description |
---|---|
void |
childContextAdded(VElement parentElement,
EMFFormsViewContext childContext)
Called when a child context is added.
|
void |
childContextDisposed(EMFFormsViewContext childContext)
Called when a child context is disposed.
|
void |
contextDispose()
Called by the context when the dispose is running.
|
void |
contextInitialised()
Called by the context when the initialization has finished.
|
void |
dispose()
Dispose.
|
Map<VElement,Boolean> |
getDisabledRenderables(Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,Object> possibleValues,
UniqueSetting setting)
Returns all
VElement s, that would we disabled if possibleValues would be set for the given
setting s. |
Map<VElement,Boolean> |
getHiddenRenderables(Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,Object> possibleValues,
UniqueSetting setting)
|
int |
getPriority()
Returns the priority for this view service.
|
void |
instantiate(ViewModelContext context)
Instantiate the view service.
|
public void instantiate(ViewModelContext context)
instantiate
in interface ViewModelService
context
- the ViewModelContext
ViewModelService.instantiate(org.eclipse.emf.ecp.view.spi.context.ViewModelContext)
public Map<VElement,Boolean> getDisabledRenderables(Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,Object> possibleValues, UniqueSetting setting)
VElement
s, that would we disabled if possibleValues
would be set for the given
setting
s.possibleValues
- a mapping of settings to their would-be new valuesetting
- the changed settingVElement
s and their new state if possibleValues
would be setpublic Map<VElement,Boolean> getHiddenRenderables(Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,Object> possibleValues, UniqueSetting setting)
possibleValues
- a mapping of settings to their would-be new valuesetting
- the setting that was changedVElement
s and their new state if possibleValues
would be setpublic void dispose()
dispose
in interface ViewModelService
public int getPriority()
getPriority
in interface ViewModelService
ViewModelService.getPriority()
public void childContextAdded(VElement parentElement, EMFFormsViewContext childContext)
childContextAdded
in interface EMFFormsContextListener
parentElement
- The VElement
that is associated with the child contextchildContext
- The EMFFormsViewContext
that was addedEMFFormsContextListener.childContextAdded(org.eclipse.emf.ecp.view.spi.model.VElement,
org.eclipse.emfforms.spi.core.services.view.EMFFormsViewContext)
public void childContextDisposed(EMFFormsViewContext childContext)
childContextDisposed
in interface EMFFormsContextListener
childContext
- The EMFFormsViewContext
that was disposedEMFFormsContextListener.childContextDisposed(org.eclipse.emfforms.spi.core.services.view.EMFFormsViewContext)
public void contextInitialised()
contextInitialised
in interface EMFFormsContextListener
EMFFormsContextListener.contextInitialised()
public void contextDispose()
contextDispose
in interface EMFFormsContextListener
EMFFormsContextListener.contextDispose()
Copyright © 2018. All rights reserved.