| org.zkoss.zul.TreeitemRenderer
TreeitemRenderer | public interface TreeitemRenderer (Code) | | Identifies components that can be used as "rubber stamps" to paint
the cells in a
Tree .
author: Jeff Liu since: ZK 3.0.0 See Also: TreeModel See Also: Tree |
Method Summary | |
public void | render(Treeitem item, Object data) Renders the data to the specified tree item. |
render | public void render(Treeitem item, Object data) throws Exception(Code) | | Renders the data to the specified tree item.
Parameters: item - the Treeitem to render the result. Note: - When this method is called, the treeitem should have no childat all, unless you don't return
- Treeitem and Treerow are only components that allowed to beitem's children.
- A new treerow should be contructed and append to item, whentreerow 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.
Parameters: data - that is used to render the Treeitem |
|
|