Interface EditorRenderer<L extends EditorLogic,D>
-
- Type Parameters:
L- - the type of the editor logicD- - the type of the item data
- All Known Implementing Classes:
AsFacetValuesRenderer,DefaultAsMultiReferenceItemDetailRenderer,DefaultAsMultiReferenceItemMasterRenderer
public interface EditorRenderer<L extends EditorLogic,D>Renderer for editors.- Since:
- 6.7
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidbeforeRender(L logic, org.zkoss.zk.ui.Component parent, D data)This method is called before therender(EditorLogic, Component, Object)method is called.default booleancanRender(L logic, org.zkoss.zk.ui.Component parent, D data)Checks if a specific item can be rendered.default booleanisEnabled(L logic)Checks if this renderer is enabled for a specific context.voidrender(L logic, org.zkoss.zk.ui.Component parent, D data)Creates a new editor item component and attaches it to the specified parent component.
-
-
-
Method Detail
-
isEnabled
default boolean isEnabled(L logic)
Checks if this renderer is enabled for a specific context.- Parameters:
logic- - the editor logic- Returns:
trueif the renderer is enabled,falseotherwise
-
canRender
default boolean canRender(L logic, org.zkoss.zk.ui.Component parent, D data)
Checks if a specific item can be rendered.- Parameters:
logic- - the editor logicparent- - the parent componentdata- - the item data- Returns:
trueif the item can be rendered,falseotherwise
-
beforeRender
default void beforeRender(L logic, org.zkoss.zk.ui.Component parent, D data)
This method is called before therender(EditorLogic, Component, Object)method is called. This method is always called even when using lazy rendering.- Parameters:
logic- - the editor logicparent- - the parent componentdata- - the item data
-
-