com.sysord.mad.emitter
Interface ViewBuilder


public interface ViewBuilder

A class implementing ViewBuilder can create views based on an EObject semantic element and its TypeConfiguration.

Author:
Fabien Vignal

Method Summary
 void addViewBuilderListener(ViewBuilderListener listener)
          Add the given ViewBuilderListener to this ViewBuilder.
 void createView(org.eclipse.emf.ecore.EObject semanticElement, TypeConfiguration targetConfiguration, SpecificWidgetContext context)
          Creates the view for the given EObject and its TypeConfiguration.
 SpecificWidgetContext getCurrentContext()
          Returns the current SpecificWidgetContext of this ViewBuilder.
 void removeViewBuilderListener(ViewBuilderListener listener)
          Remove the given ViewBuilderListener from this ViewBuilder.
 void updateCurrentView()
          Updates the current view.
 void updateCurrentViewOuputputWidgets()
          Update all the OutputWidgets of the current view.
 

Method Detail

createView

void createView(org.eclipse.emf.ecore.EObject semanticElement,
                TypeConfiguration targetConfiguration,
                SpecificWidgetContext context)
Creates the view for the given EObject and its TypeConfiguration.

Parameters:
semanticElement -
targetConfiguration -
context -

getCurrentContext

SpecificWidgetContext getCurrentContext()
Returns the current SpecificWidgetContext of this ViewBuilder.

Returns:
the current SpecificWidgetContext of this ViewBuilder.

updateCurrentView

void updateCurrentView()
Updates the current view.


updateCurrentViewOuputputWidgets

void updateCurrentViewOuputputWidgets()
Update all the OutputWidgets of the current view.


addViewBuilderListener

void addViewBuilderListener(ViewBuilderListener listener)
Add the given ViewBuilderListener to this ViewBuilder.

Parameters:
listener - The ViewBuilderListener to remove.

removeViewBuilderListener

void removeViewBuilderListener(ViewBuilderListener listener)
Remove the given ViewBuilderListener from this ViewBuilder.

Parameters:
listener - The ViewBuilderListener to remove.