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
Modifier and TypeMethodDescriptiondefault voidbeforeRender(L logic, org.zkoss.zk.ui.Component parent, D data) This method is called before therender(EditorLogic, Component, Object)method is called.default booleanChecks if a specific item can be rendered.default booleanChecks if this renderer is enabled for a specific context.voidCreates a new editor item component and attaches it to the specified parent component.
-
Method Details
-
isEnabled
Checks if this renderer is enabled for a specific context.- Parameters:
logic- - the editor logic- Returns:
trueif the renderer is enabled,falseotherwise
-
canRender
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
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
-
render
Creates a new editor item component and attaches it to the specified parent component.- Parameters:
logic- - the editor logicparent- - the parent componentdata- - the item data
-