org.zkoss.zk.ui.ext.render
Interface MultiBranch


public interface MultiBranch

Implemented by the object returned by ComponentCtrl.getExtraCtrl() to denote a component might have several branches of elements at the client. Then, ZK will call inDifferentBranch(org.zkoss.zk.ui.Component) to see whether a child is NOT on the main branch.

Author:
tomyeh

Method Summary
 boolean inDifferentBranch(Component child)
          Whether the specified child is placed in different branch of the DOM tree (other than the main one).
 

Method Detail

inDifferentBranch

boolean inDifferentBranch(Component child)
Whether the specified child is placed in different branch of the DOM tree (other than the main one). For example, you might put caption at a branch and the rest at another branch. Then, you shall return false for the caption. Thus, ZK knows how to render them correctly.

Note: for components, say caption, in different branch, you have to invalidate the parent when they are added or removed. Only children causing this method to return true are handled by ZK Update Engine.



Copyright © 2005-2007 Potix Corporation. All Rights Reserved.