N
- the native widget typepublic abstract class BaseMenuRenderer<N> extends BaseItemContainerRenderer<org.eclipse.e4.ui.model.application.ui.menu.MMenu,org.eclipse.e4.ui.model.application.ui.menu.MMenuElement,WMenu<N>>
MMenu
representing a menuATTRIBUTE_localizedLabel, ATTRIBUTE_localizedTooltip, CALCULATED_VISIBILITY, CONTEXT_DOM_ELEMENT, CURRENT_VISIBLE_WHEN
Constructor and Description |
---|
BaseMenuRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
do_childRendered(@NonNull org.eclipse.e4.ui.model.application.ui.menu.MMenu parentElement,
@NonNull org.eclipse.e4.ui.model.application.ui.MUIElement element)
Called to render the child
|
void |
do_hideChild(org.eclipse.e4.ui.model.application.ui.menu.MMenu container,
org.eclipse.e4.ui.model.application.ui.MUIElement changedObj)
Called to hide a child
|
protected void |
do_init(@NonNull org.eclipse.e4.core.services.events.IEventBroker broker)
Called to init
|
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(@NonNull org.eclipse.e4.ui.model.application.ui.menu.MMenu parent,
@NonNull java.util.Collection<org.eclipse.e4.ui.model.application.ui.menu.MMenuElement> elements)
Called when children are removed
|
protected void |
initWidget(org.eclipse.e4.ui.model.application.ui.menu.MMenu element,
WMenu<N> widget)
Initialize the widget
|
protected boolean |
isChildAndRenderedVisible(org.eclipse.e4.ui.model.application.ui.MUIElement u)
Check if the item is visible and to be rendered
|
protected boolean |
isShowing(org.eclipse.e4.ui.model.application.ui.menu.MMenuElement item)
Check if the given item is currently show
|
protected boolean |
skipEnablementCheck() |
childRendered, hideChild
activate, bindWidget, checkVisibleWhen, createWidget, destroyWidget, engineCreateWidget, engineCreateWidget, focus, getContextForParent, getLogger, getModelContext, getPresentationEngine, getRenderedIndex, getRenderingContext, getVisibleWhen, getWidget, getWidgetClass, inContentProcessing, inContextModification, initContext, initRenderingContext, inUIModification, postProcess, preDestroy, processContent, registerEventListener, setupRenderingContext, syncUIModifications
protected void do_init(@NonNull org.eclipse.e4.core.services.events.IEventBroker broker)
BaseItemContainerRenderer
do_init
in class BaseItemContainerRenderer<org.eclipse.e4.ui.model.application.ui.menu.MMenu,org.eclipse.e4.ui.model.application.ui.menu.MMenuElement,WMenu<N>>
broker
- the event brokerprotected 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 widgetprotected boolean skipEnablementCheck()
skipEnablementCheck
in class BaseItemContainerRenderer<org.eclipse.e4.ui.model.application.ui.menu.MMenu,org.eclipse.e4.ui.model.application.ui.menu.MMenuElement,WMenu<N>>
true
if the enablement check is disabled currentlyprotected boolean isShowing(org.eclipse.e4.ui.model.application.ui.menu.MMenuElement item)
BaseItemContainerRenderer
isShowing
in class BaseItemContainerRenderer<org.eclipse.e4.ui.model.application.ui.menu.MMenu,org.eclipse.e4.ui.model.application.ui.menu.MMenuElement,WMenu<N>>
item
- the itemtrue
if the item is currently visible on screenpublic 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(@NonNull org.eclipse.e4.ui.model.application.ui.menu.MMenu parent, @NonNull java.util.Collection<org.eclipse.e4.ui.model.application.ui.menu.MMenuElement> elements)
EventProcessor.ChildrenHandler
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
parent
- the parentelements
- the child elementspublic void do_childRendered(@NonNull org.eclipse.e4.ui.model.application.ui.menu.MMenu parentElement, @NonNull org.eclipse.e4.ui.model.application.ui.MUIElement element)
BaseItemContainerRenderer
do_childRendered
in class BaseItemContainerRenderer<org.eclipse.e4.ui.model.application.ui.menu.MMenu,org.eclipse.e4.ui.model.application.ui.menu.MMenuElement,WMenu<N>>
parentElement
- the parentelement
- the elementprotected boolean isChildAndRenderedVisible(org.eclipse.e4.ui.model.application.ui.MUIElement u)
BaseRenderer
isChildAndRenderedVisible
in class BaseRenderer<org.eclipse.e4.ui.model.application.ui.menu.MMenu,WMenu<N>>
u
- the elementtrue
if item is to be shownpublic void do_hideChild(org.eclipse.e4.ui.model.application.ui.menu.MMenu container, org.eclipse.e4.ui.model.application.ui.MUIElement changedObj)
BaseItemContainerRenderer
do_hideChild
in class BaseItemContainerRenderer<org.eclipse.e4.ui.model.application.ui.menu.MMenu,org.eclipse.e4.ui.model.application.ui.menu.MMenuElement,WMenu<N>>
container
- the containerchangedObj
- the child hidden