Package org.zkoss.bind.impl
Class BindTreeitemRenderer
java.lang.Object
org.zkoss.bind.impl.AbstractRenderer
org.zkoss.bind.impl.BindTreeitemRenderer
- All Implemented Interfaces:
Serializable,TreeitemRenderer<Object>
Treeitem renderer for binding.
- Since:
- 6.0.0
- Author:
- henrichen
- See Also:
-
Field Summary
Fields inherited from class org.zkoss.bind.impl.AbstractRenderer
CURRENT_INDEX_RESOLVER_ATTR, EACH_ATTR, EACH_STATUS_VAR, EACH_VAR, IS_TEMPLATE_MODEL_ENABLED_ATTR, RENDERED_COMPONENTS, STATUS_ATTR, STATUS_POST_VAR -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.zkoss.bind.impl.AbstractRenderer
addItemReference, addTemplateTracking, filterOutShadows, lookupTemplate, resolveTemplate, resolveTemplate, setAttributeName
-
Constructor Details
-
BindTreeitemRenderer
public BindTreeitemRenderer()
-
-
Method Details
-
render
Description copied from interface:TreeitemRendererRenders the data to the specified tree item.- Specified by:
renderin interfaceTreeitemRenderer<Object>- Parameters:
item- the Treeitem to render the result.
Note:- When this method is called, the treeitem should have no child at all, unless you don't return
- Treeitem and Treerow are only components that allowed to be item's children.
- A new treerow should be constructed and append to item, when
treerow of item is null.
Otherwise, when treerow of item is not null, modify the content of the treerow or detach the treerow's children first, since that only one treerow is allowed - Do not append any treechildren to item in this method, a treechildren will be appended afterward.
- When a treerow is not appended to item, generally label of item is displayed.
data- that is used to render the Treeitemindex- the index of the data that is currently being rendered. Notice the index is the order of the siblings (i.e., data that belongs to the same parent).- Throws:
Exception
-