multibranch.java
来自「非常接近C/S操作方式的Java Ajax框架-ZK 用ZK框架使你的B/S应」· Java 代码 · 共 43 行
JAVA
43 行
/* MultiBranch.java{{IS_NOTE Purpose: Description: History: Tue Oct 17 14:02:55 2006, Created by tomyeh}}IS_NOTECopyright (C) 2006 Potix Corporation. All Rights Reserved.{{IS_RIGHT}}IS_RIGHT*/package org.zkoss.zk.ui.ext.render;import org.zkoss.zk.ui.Component;/** * Implemented by the object returned by {@link org.zkoss.zk.ui.sys.ComponentCtrl#getExtraCtrl} * to denote a component might have several branches of elements at the client. * Then, ZK will call {@link #inDifferentBranch} to see whether a child * is NOT on the main branch. * * @author tomyeh */public interface MultiBranch { /** 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. * * <p>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. */ public boolean inDifferentBranch(Component child);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?