public class TreeMasterDetailValidationInitiator extends Object implements GlobalViewModelService, EMFFormsContextListener
VTreeMasterDetail VElements and registers the necessary
ViewModelContexts.| Modifier and Type | Field and Description |
|---|---|
static String |
DETAIL_KEY
The detail key passed to the view model context.
|
static String |
ROOT_KEY
Context key for the root.
|
| Constructor and Description |
|---|
TreeMasterDetailValidationInitiator()
Constructor of the Initiator.
|
| 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 |
childViewModelContextAdded(ViewModelContext childContext)
This method is called whenever a new
ViewModelContext is added as a child context to the root
ViewModelContext this GlobalViewModelService belongs to. |
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.
|
int |
getPriority()
Returns the priority for this view service.
|
void |
instantiate(ViewModelContext context)
Instantiate the view service.
|
public static final String DETAIL_KEY
public static final String ROOT_KEY
public TreeMasterDetailValidationInitiator()
public void instantiate(ViewModelContext context)
ViewModelServiceinstantiate in interface ViewModelServicecontext - the ViewModelContextpublic void dispose()
ViewModelServicedispose in interface ViewModelServicepublic int getPriority()
ViewModelServicegetPriority in interface ViewModelServicepublic void childViewModelContextAdded(ViewModelContext childContext)
ViewModelContext is added as a child context to the root
ViewModelContext this GlobalViewModelService belongs to.childViewModelContextAdded in interface GlobalViewModelServicechildContext - The ViewModelContext that was added.GlobalViewModelService.childViewModelContextAdded(org.eclipse.emf.ecp.view.spi.context.ViewModelContext)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 © 2019. All rights reserved.