org.zkoss.bind.impl
Class BindTreeitemRenderer

java.lang.Object
  extended by org.zkoss.bind.impl.BindTreeitemRenderer
All Implemented Interfaces:
TreeitemRenderer

public class BindTreeitemRenderer
extends java.lang.Object
implements TreeitemRenderer

Treeitem renderer for binding.

Author:
henrichen

Constructor Summary
BindTreeitemRenderer()
           
 
Method Summary
 void render(Treeitem item, java.lang.Object data)
          Renders the data to the specified tree item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindTreeitemRenderer

public BindTreeitemRenderer()
Method Detail

render

public void render(Treeitem item,
                   java.lang.Object data)
            throws java.lang.Exception
Description copied from interface: TreeitemRenderer
Renders the data to the specified tree item.

Specified by:
render in interface TreeitemRenderer
Parameters:
item - the Treeitem to render the result.
Note:
  1. When this method is called, the treeitem should have no child at all, unless you don't return
  2. Treeitem and Treerow are only components that allowed to be item's children.
  3. A new treerow should be contructed 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
  4. Do not append any treechildren to item in this method, a treechildren will be appended afterward.
  5. When a treerow is not appended to item, generally label of item is displayed.
data - that is used to render the Treeitem
Throws:
java.lang.Exception


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo