org.zkoss.zk.ui
Class HtmlBasedComponent.ExtraCtrl

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

protected class HtmlBasedComponent.ExtraCtrl
extends java.lang.Object
implements Movable, Sizable, ZIndexed

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

If a component requires more client controls, it is suggested to override HtmlBasedComponent.newExtraCtrl() to return an instance that extends from this interface.


Constructor Summary
protected HtmlBasedComponent.ExtraCtrl()
           
 
Method Summary
 void setHeightByClient(java.lang.String height)
          Sets the height of the component, caused by user's activity at the client.
 void setLeftByClient(java.lang.String left)
          Sets the left of the component, caused by user's activity at the client.
 void setTopByClient(java.lang.String top)
          Sets the top of the component, caused by user's activity at the client.
 void setWidthByClient(java.lang.String width)
          Sets the width of the component, caused by user's activity at the client.
 void setZIndexByClient(int zIndex)
          Sets the z-index of the component, caused by user's activity at the client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlBasedComponent.ExtraCtrl

protected HtmlBasedComponent.ExtraCtrl()
Method Detail

setLeftByClient

public void setLeftByClient(java.lang.String left)
Description copied from interface: Movable
Sets the left of the component, caused by user's activity at the client.

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

Specified by:
setLeftByClient in interface Movable

setTopByClient

public void setTopByClient(java.lang.String top)
Description copied from interface: Movable
Sets the top of the component, caused by user's activity at the client.

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

Specified by:
setTopByClient in interface Movable

setWidthByClient

public void setWidthByClient(java.lang.String width)
Description copied from interface: Sizable
Sets the width of the component, caused by user's activity at the client.

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

Specified by:
setWidthByClient in interface Sizable

setHeightByClient

public void setHeightByClient(java.lang.String height)
Description copied from interface: Sizable
Sets the height of the component, caused by user's activity at the client.

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

Specified by:
setHeightByClient in interface Sizable

setZIndexByClient

public void setZIndexByClient(int zIndex)
Description copied from interface: ZIndexed
Sets the z-index of the component, caused by user's activity at the client.

Specified by:
setZIndexByClient in interface ZIndexed


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