org.zkoss.zul
Class Groupbox.ExtraCtrl

java.lang.Object
  extended by org.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrl
      extended by org.zkoss.zul.Groupbox.ExtraCtrl
All Implemented Interfaces:
Movable, Openable, Sizable, ZIndexed, MultiBranch, PrologAllowed
Enclosing class:
Groupbox

protected class Groupbox.ExtraCtrl
extends HtmlBasedComponent.ExtraCtrl
implements MultiBranch, Openable

A utility class to implement AbstractComponent.getExtraCtrl(). It is used only by component developers.


Constructor Summary
protected Groupbox.ExtraCtrl()
           
 
Method Summary
 boolean inDifferentBranch(Component child)
          Whether the specified child is placed in different branch of the DOM tree (other than the main one).
 void setOpenByClient(boolean open)
          Sets the open state caused by client's operation.
 
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrl
setHeightByClient, setLeftByClient, setPrologContent, setTopByClient, setWidthByClient, setZIndexByClient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Groupbox.ExtraCtrl

protected Groupbox.ExtraCtrl()
Method Detail

inDifferentBranch

public boolean inDifferentBranch(Component child)
Description copied from 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.

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.

Specified by:
inDifferentBranch in interface MultiBranch

setOpenByClient

public void setOpenByClient(boolean open)
Description copied from interface: Openable
Sets the open state caused by client's operation.

This method is designed to be used by engine. Don't invoke it directly. Otherwise, the client and server might mismatch.

Specified by:
setOpenByClient in interface Openable


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