public class ProxyRenderer<PARENT,CONFIG,DATA> extends Object
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 and 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) |
| Modifier and Type | Method and Description |
|---|---|
CONFIG |
getConfig() |
DATA |
getData() |
PARENT |
getParent() |
protected WidgetRenderingUtils |
getWidgetRenderingUtils() |
<PP,CC,DD> void |
render(WidgetComponentRenderer<PP,CC,DD> renderer,
PP parent,
CC config,
DD data,
DataType dataType,
WidgetInstanceManager wim) |
protected <PP> boolean |
shouldPropagateMarkedComponents(PP parent) |
public ProxyRenderer(AbstractWidgetComponentRenderer<PARENT,CONFIG,DATA> parentRenderer, PARENT parentComponent, CONFIG parentConfig, DATA parentData)
public ProxyRenderer(AbstractWidgetComponentRenderer<PARENT,CONFIG,DATA> parentRenderer, PARENT parentComponent, CONFIG parentConfig, DATA parentData, WidgetRenderingUtils widgetRenderingUtils)
public PARENT getParent()
public CONFIG getConfig()
public DATA getData()
public <PP,CC,DD> void render(WidgetComponentRenderer<PP,CC,DD> renderer, PP parent, CC config, DD data, DataType dataType, WidgetInstanceManager wim)
protected <PP> boolean shouldPropagateMarkedComponents(PP parent)
protected WidgetRenderingUtils getWidgetRenderingUtils()
Copyright © 2018. All rights reserved.