M
- the elementI
- the child typeW
- the widgetpublic abstract class BaseItemContainerRenderer<M extends org.eclipse.e4.ui.model.application.ui.MElementContainer<I>,I extends org.eclipse.e4.ui.model.application.ui.MUIElement,W extends WWidget<M>> extends BaseRenderer<M,W> implements EventProcessor.ChildrenHandler<M,I>
ATTRIBUTE_localizedLabel, ATTRIBUTE_localizedTooltip, CALCULATED_VISIBILITY, CONTEXT_DOM_ELEMENT, CURRENT_VISIBLE_WHEN
Constructor and Description |
---|
BaseItemContainerRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
childRendered(M parentElement,
org.eclipse.e4.ui.model.application.ui.MUIElement element)
Inform the that a direct child of the parentElement has been rendered
|
protected abstract void |
do_childRendered(M parentElement,
@NonNull org.eclipse.e4.ui.model.application.ui.MUIElement element)
Called to render the child
|
protected abstract void |
do_hideChild(M container,
@NonNull org.eclipse.e4.ui.model.application.ui.MUIElement changedObj)
Called to hide a child
|
protected abstract void |
do_init(@NonNull org.eclipse.e4.core.services.events.IEventBroker broker)
Called to init
|
void |
hideChild(M container,
org.eclipse.e4.ui.model.application.ui.MUIElement changedObj)
Hide the child of the element
|
protected boolean |
isShowing(I item)
Check if the given item is currently show
|
protected boolean |
skipEnablementCheck() |
activate, bindWidget, checkVisibleWhen, createWidget, destroyWidget, doProcessContent, engineCreateWidget, engineCreateWidget, focus, getContextForParent, getLogger, getModelContext, getPresentationEngine, getRenderedIndex, getRenderingContext, getVisibleWhen, getWidget, getWidgetClass, inContentProcessing, inContextModification, initContext, initRenderingContext, initWidget, inUIModification, isChildAndRenderedVisible, postProcess, preDestroy, processContent, registerEventListener, setupRenderingContext, syncUIModifications
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleChildrenAddition, handleChildrenRemove
protected boolean skipEnablementCheck()
true
if the enablement check is disabled currentlyprotected boolean isShowing(I item)
item
- the itemtrue
if the item is currently visible on screenpublic void childRendered(M parentElement, org.eclipse.e4.ui.model.application.ui.MUIElement element)
ElementRenderer
childRendered
in interface ElementRenderer<M extends org.eclipse.e4.ui.model.application.ui.MElementContainer<I>,W extends WWidget<M>>
parentElement
- the parentelement
- the child renderedpublic void hideChild(M container, org.eclipse.e4.ui.model.application.ui.MUIElement changedObj)
ElementRenderer
protected abstract void do_init(@NonNull org.eclipse.e4.core.services.events.IEventBroker broker)
broker
- the event brokerprotected abstract void do_childRendered(M parentElement, @NonNull org.eclipse.e4.ui.model.application.ui.MUIElement element)
parentElement
- the parentelement
- the elementprotected abstract void do_hideChild(M container, @NonNull org.eclipse.e4.ui.model.application.ui.MUIElement changedObj)
container
- the containerchangedObj
- the child hidden