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)
ViewModelService
instantiate
in interface ViewModelService
context
- the ViewModelContext
public void dispose()
ViewModelService
dispose
in interface ViewModelService
public int getPriority()
ViewModelService
getPriority
in interface ViewModelService
public void childViewModelContextAdded(ViewModelContext childContext)
ViewModelContext
is added as a child context to the root
ViewModelContext
this GlobalViewModelService
belongs to.childViewModelContextAdded
in interface GlobalViewModelService
childContext
- 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 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 © 2017. All rights reserved.