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
VElements, that would we disabled if possibleValues would be set for the given
settings. |
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 ViewModelServicecontext - the ViewModelContextViewModelService.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)
VElements, that would we disabled if possibleValues would be set for the given
settings.possibleValues - a mapping of settings to their would-be new valuesetting - the changed settingVElements 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 changedVElements and their new state if possibleValues would be setpublic void dispose()
dispose in interface ViewModelServicepublic int getPriority()
getPriority in interface ViewModelServiceViewModelService.getPriority()public void childContextAdded(VElement parentElement, EMFFormsViewContext childContext)
childContextAdded in interface EMFFormsContextListenerparentElement - 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 EMFFormsContextListenerchildContext - The EMFFormsViewContext that was disposedEMFFormsContextListener.childContextDisposed(org.eclipse.emfforms.spi.core.services.view.EMFFormsViewContext)public void contextInitialised()
contextInitialised in interface EMFFormsContextListenerEMFFormsContextListener.contextInitialised()public void contextDispose()
contextDispose in interface EMFFormsContextListenerEMFFormsContextListener.contextDispose()Copyright © 2016. All rights reserved.