M
- the model element typeC
- the control/widget typepublic interface ElementRenderer<M extends org.eclipse.e4.ui.model.application.ui.MUIElement,C>
Modifier and Type | Method and Description |
---|---|
void |
bindWidget(M element,
C widget)
Bind the widget and the element together
|
void |
childRendered(M parentElement,
@NonNull org.eclipse.e4.ui.model.application.ui.MUIElement element)
Inform the that a direct child of the parentElement has been rendered
|
C |
createWidget(M element)
Create the widget for the given model element
|
void |
destroyWidget(M element)
Destroy the widget associated with the element
|
void |
focus(@NonNull org.eclipse.e4.ui.model.application.ui.MUIElement element)
Focus the given element
|
@Nullable org.eclipse.e4.core.contexts.IEclipseContext |
getModelContext(@NonNull org.eclipse.e4.ui.model.application.ui.MUIElement element)
Retrieve the model context for the given element
|
C |
getWidget(M element)
Get the widget for the given elemenet
|
void |
hideChild(M parent,
@NonNull org.eclipse.e4.ui.model.application.ui.MUIElement element)
Hide the child of the element
|
void |
postProcess(M element)
Post process the element
|
void |
preDestroy(M element)
Inform about destruction of the element
|
void |
processContent(M element)
Process the elements content
|
org.eclipse.e4.core.contexts.IEclipseContext |
setupRenderingContext(M element)
Setup the context for rendering the element
|
C createWidget(M element)
element
- the model elementorg.eclipse.e4.core.contexts.IEclipseContext setupRenderingContext(M element)
element
- the elementvoid bindWidget(M element, C widget)
element
- the elementwidget
- the widgetvoid processContent(M element)
element
- the elementvoid postProcess(M element)
element
- the elementvoid childRendered(M parentElement, @NonNull org.eclipse.e4.ui.model.application.ui.MUIElement element)
parentElement
- the parentelement
- the child renderedvoid preDestroy(M element)
element
- the elementvoid hideChild(M parent, @NonNull org.eclipse.e4.ui.model.application.ui.MUIElement element)
parent
- the element containerelement
- the element to hidevoid destroyWidget(M element)
element
- the element@Nullable org.eclipse.e4.core.contexts.IEclipseContext getModelContext(@NonNull org.eclipse.e4.ui.model.application.ui.MUIElement element)
element
- the elementvoid focus(@NonNull org.eclipse.e4.ui.model.application.ui.MUIElement element)
element
- the element to focus