L - - the type of the editor logicD - - the type of the item datapublic interface EditorRenderer<L extends EditorLogic,D>
| Modifier and Type | Method and Description |
|---|---|
default void |
beforeRender(L logic,
Component parent,
D data)
This method is called before the
render(EditorLogic, Component, Object) method is called. |
default boolean |
canRender(L logic,
Component parent,
D data)
Checks if a specific item can be rendered.
|
default boolean |
isEnabled(L logic)
Checks if this renderer is enabled for a specific context.
|
void |
render(L logic,
Component parent,
D data)
Creates a new editor item component and attaches it to the specified parent component.
|
default boolean isEnabled(L logic)
logic - - the editor logictrue if the renderer is enabled, false otherwisedefault boolean canRender(L logic, Component parent, D data)
logic - - the editor logicparent - - the parent componentdata - - the item datatrue if the item can be rendered, false otherwisedefault void beforeRender(L logic, Component parent, D data)
render(EditorLogic, Component, Object) method is called. This method is
always called even when using lazy rendering.logic - - the editor logicparent - - the parent componentdata - - the item dataCopyright © 2018 SAP SE. All Rights Reserved.