PARENT - type of parent component on which renderer is able to renderCONFIG - type of configuration for rendererDATA - type of data that may be renderedLAZY_DATA - type of data that is lazy loadedpublic abstract class AbstractLazyRenderer<PARENT,CONFIG,DATA,LAZY_DATA> extends AbstractWidgetComponentRenderer<PARENT,CONFIG,DATA>
| Constructor and Description |
|---|
AbstractLazyRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract LAZY_DATA |
loadData(CONFIG configuration,
DATA data,
DataType dataType)
Loads data of type LAZY_DATA
|
void |
render(PARENT parent,
CONFIG configuration,
DATA data,
DataType dataType,
WidgetInstanceManager widgetInstanceManager)
Renders a component inside parent, representing given data and complying to given ui
configuration.
|
protected abstract void |
renderAfterLoad(PARENT parent,
CONFIG configuration,
DATA data,
DataType dataType,
WidgetInstanceManager wim,
LazyTaskResult<LAZY_DATA> lazyLoadedData)
Renders component when lazy loaded data is available.
|
protected abstract void |
renderBeforeLoad(PARENT parent,
CONFIG configuration,
DATA data,
DataType dataType,
WidgetInstanceManager widgetInstanceManager)
Renders component before lazy loaded data is available.
|
void |
setLazyTasksExecutorFactory(LazyTasksExecutorFactory tasksExecutorFactory) |
addRendererListener, fireComponentRendered, fireComponentRendered, fireComponentRendered, removeRendererListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrenderpublic void render(PARENT parent, CONFIG configuration, DATA data, DataType dataType, WidgetInstanceManager widgetInstanceManager)
WidgetComponentRendererparent - parent component on which to renderconfiguration - configuration of rendererdata - data to be rendereddataType - meta information about type of data providedwidgetInstanceManager - widget manager in scope of which renderer is usedprotected abstract void renderBeforeLoad(PARENT parent, CONFIG configuration, DATA data, DataType dataType, WidgetInstanceManager widgetInstanceManager)
parent - parent component on which to renderconfiguration - configuration of rendererdata - data to be rendereddataType - meta information about type of data providedwidgetInstanceManager - widget manager in scope of which renderer is usedprotected abstract LAZY_DATA loadData(CONFIG configuration, DATA data, DataType dataType)
configuration - configuration of rendererdata - data to be used for collecting additional informationdataType - meta information about type of data providedprotected abstract void renderAfterLoad(PARENT parent, CONFIG configuration, DATA data, DataType dataType, WidgetInstanceManager wim, LazyTaskResult<LAZY_DATA> lazyLoadedData)
parent - parent component on which to renderconfiguration - configuration of rendererdata - data to be rendereddataType - meta information about type of data providedwim - widget manager in scope of which renderer is usedlazyLoadedData - additional data returned by loadData method, wrapped by LazyTaskResultpublic void setLazyTasksExecutorFactory(LazyTasksExecutorFactory tasksExecutorFactory)
Copyright © 2018. All rights reserved.