N
- public abstract class BasePartMenuRenderer<N> extends BaseRenderer<org.eclipse.e4.ui.model.application.ui.menu.MMenu,WMenu<N>> implements EventProcessor.ChildrenHandler<org.eclipse.e4.ui.model.application.ui.menu.MMenu,org.eclipse.e4.ui.model.application.ui.menu.MMenuElement>
ATTRIBUTE_localizedLabel, ATTRIBUTE_localizedTooltip, CALCULATED_VISIBILITY, CONTEXT_DOM_ELEMENT, CURRENT_VISIBLE_WHEN
Constructor and Description |
---|
BasePartMenuRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
childRendered(org.eclipse.e4.ui.model.application.ui.menu.MMenu parentElement,
org.eclipse.e4.ui.model.application.ui.MUIElement element)
Inform the that a direct child of the parentElement has been rendered
|
void |
doProcessContent(org.eclipse.e4.ui.model.application.ui.menu.MMenu element)
Process the content of an element
|
void |
handleChildrenAddition(org.eclipse.e4.ui.model.application.ui.menu.MMenu parent,
java.util.Collection<org.eclipse.e4.ui.model.application.ui.menu.MMenuElement> elements)
Called when children are added
|
void |
handleChildrenRemove(org.eclipse.e4.ui.model.application.ui.menu.MMenu parent,
java.util.Collection<org.eclipse.e4.ui.model.application.ui.menu.MMenuElement> elements)
Called when children are removed
|
void |
hideChild(org.eclipse.e4.ui.model.application.ui.menu.MMenu container,
org.eclipse.e4.ui.model.application.ui.MUIElement changedObj)
Hide the child of the element
|
protected void |
initWidget(org.eclipse.e4.ui.model.application.ui.menu.MMenu element,
WMenu<N> widget)
Initialize the widget
|
activate, bindWidget, checkVisibleWhen, createWidget, destroyWidget, engineCreateWidget, engineCreateWidget, focus, getContextForParent, getLogger, getModelContext, getPresentationEngine, getRenderedIndex, getRenderingContext, getVisibleWhen, getWidget, getWidgetClass, inContentProcessing, inContextModification, initContext, initRenderingContext, inUIModification, isChildAndRenderedVisible, postProcess, preDestroy, processContent, registerEventListener, setupRenderingContext, syncUIModifications
protected void initWidget(org.eclipse.e4.ui.model.application.ui.menu.MMenu element, WMenu<N> widget)
BaseRenderer
initWidget
in class BaseRenderer<org.eclipse.e4.ui.model.application.ui.menu.MMenu,WMenu<N>>
element
- the model elementwidget
- the widgetpublic void doProcessContent(org.eclipse.e4.ui.model.application.ui.menu.MMenu element)
BaseRenderer
doProcessContent
in class BaseRenderer<org.eclipse.e4.ui.model.application.ui.menu.MMenu,WMenu<N>>
element
- the elementpublic void handleChildrenRemove(org.eclipse.e4.ui.model.application.ui.menu.MMenu parent, java.util.Collection<org.eclipse.e4.ui.model.application.ui.menu.MMenuElement> elements)
EventProcessor.ChildrenHandler
handleChildrenRemove
in interface EventProcessor.ChildrenHandler<org.eclipse.e4.ui.model.application.ui.menu.MMenu,org.eclipse.e4.ui.model.application.ui.menu.MMenuElement>
parent
- the parentelements
- the child elementspublic void handleChildrenAddition(org.eclipse.e4.ui.model.application.ui.menu.MMenu parent, java.util.Collection<org.eclipse.e4.ui.model.application.ui.menu.MMenuElement> elements)
EventProcessor.ChildrenHandler
handleChildrenAddition
in interface EventProcessor.ChildrenHandler<org.eclipse.e4.ui.model.application.ui.menu.MMenu,org.eclipse.e4.ui.model.application.ui.menu.MMenuElement>
parent
- the parentelements
- the child elementspublic void childRendered(org.eclipse.e4.ui.model.application.ui.menu.MMenu parentElement, org.eclipse.e4.ui.model.application.ui.MUIElement element)
ElementRenderer
childRendered
in interface ElementRenderer<org.eclipse.e4.ui.model.application.ui.menu.MMenu,WMenu<N>>
parentElement
- the parentelement
- the child renderedpublic void hideChild(org.eclipse.e4.ui.model.application.ui.menu.MMenu container, org.eclipse.e4.ui.model.application.ui.MUIElement changedObj)
ElementRenderer
hideChild
in interface ElementRenderer<org.eclipse.e4.ui.model.application.ui.menu.MMenu,WMenu<N>>
container
- the element containerchangedObj
- the element to hide