Class ProxyRenderer<PARENT,CONFIG,DATA>
- java.lang.Object
-
- com.hybris.cockpitng.widgets.common.ProxyRenderer<PARENT,CONFIG,DATA>
-
public class ProxyRenderer<PARENT,CONFIG,DATA> extends java.lang.ObjectIt's a renderer that is able to propagate rendering events.ProxyRenderer should be used when nested rendering is used (i.e. EditorAreaRenderer uses TabRenderer). In such situation it is possible that all listeners of parent renderer (i.e. EditorArea's) wishes to be notified of rendering events of nested renderer (i.e. TabRenderer). ProxyRenderer wraps such nested renderer registers as its listener and renders it. If any events are posted by wrapped renderer, then they are passed over to parent renderer.
Parent listeners that are notified of nested rendering events gets information about particular component that has been rendered and parent's configuration/data. To get rendering parameters of specific nested renderer, a cause event may be received (see:
WidgetComponentRendererEvent.getCause().
-
-
Constructor Summary
Constructors Constructor Description ProxyRenderer(AbstractWidgetComponentRenderer<PARENT,CONFIG,DATA> parentRenderer, PARENT parentComponent, CONFIG parentConfig, DATA parentData)ProxyRenderer(AbstractWidgetComponentRenderer<PARENT,CONFIG,DATA> parentRenderer, PARENT parentComponent, CONFIG parentConfig, DATA parentData, WidgetRenderingUtils widgetRenderingUtils)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CONFIGgetConfig()DATAgetData()PARENTgetParent()protected WidgetRenderingUtilsgetWidgetRenderingUtils()<PP,CC,DD>
voidrender(WidgetComponentRenderer<PP,CC,DD> renderer, PP parent, CC config, DD data, DataType dataType, WidgetInstanceManager wim)protected <PP> booleanshouldPropagateMarkedComponents(PP parent)
-
-
-
Constructor Detail
-
ProxyRenderer
public ProxyRenderer(AbstractWidgetComponentRenderer<PARENT,CONFIG,DATA> parentRenderer, PARENT parentComponent, CONFIG parentConfig, DATA parentData)
-
ProxyRenderer
public ProxyRenderer(AbstractWidgetComponentRenderer<PARENT,CONFIG,DATA> parentRenderer, PARENT parentComponent, CONFIG parentConfig, DATA parentData, WidgetRenderingUtils widgetRenderingUtils)
-
-
Method Detail
-
getParent
public PARENT getParent()
-
getConfig
public CONFIG getConfig()
-
getData
public DATA getData()
-
render
public <PP,CC,DD> void render(WidgetComponentRenderer<PP,CC,DD> renderer, PP parent, CC config, DD data, DataType dataType, WidgetInstanceManager wim)
-
shouldPropagateMarkedComponents
protected <PP> boolean shouldPropagateMarkedComponents(PP parent)
-
getWidgetRenderingUtils
protected WidgetRenderingUtils getWidgetRenderingUtils()
-
-