01: /* InnerWidth.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Fri Nov 2 23:24:52 2007, Created by tomyeh
10: }}IS_NOTE
11:
12: Copyright (C) 2007 Potix Corporation. All Rights Reserved.
13:
14: {{IS_RIGHT
15: This program is distributed under GPL Version 2.0 in the hope that
16: it will be useful, but WITHOUT ANY WARRANTY.
17: }}IS_RIGHT
18: */
19: package org.zkoss.zk.ui.ext.client;
20:
21: /**
22: * Implemented by the object returned by {@link org.zkoss.zk.ui.sys.ComponentCtrl#getExtraCtrl}
23: * to indicate a component that has a sizable inner width.
24: * Some components, such as listbox and grid, have the concept called inner
25: * width, which is the width of inner table.
26: *
27: * <p>Once the inner width is re-sized by the user, {@link #setInnerWidthByClient}
28: * is called.
29: *
30: * @author tomyeh
31: * @since 3.0.0
32: */
33: public interface InnerWidth {
34: /** Sets the inner width of the component, caused by user's activity at
35: * the client.
36: * <p>This method is designed to be used by ZK update engine.
37: * Don't invoke it directly. Otherwise, the client and server
38: * might mismatch.
39: * @since 3.0.0
40: */
41: public void setInnerWidthByClient(String width);
42: }
|