01: /* Sizable.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Thu Dec 7 11:16:06 2006, Created by tomyeh
10: }}IS_NOTE
11:
12: Copyright (C) 2006 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 is sizable by the client.
24: *
25: * <p>Once it is re-sized by the user, {@link #setWidthByClient} and
26: * {@link #setHeightByClient} is called.
27: * Depending on the compoent, {@link org.zkoss.zk.ui.event.SizeEvent} is
28: * usually sent to notify the component.
29: *
30: * @author tomyeh
31: */
32: public interface Sizable {
33: /** Sets the width of the component, caused by user's activity at
34: * the client.
35: * <p>This method is designed to be used by engine.
36: * Don't invoke it directly. Otherwise, the client and server
37: * might mismatch.
38: */
39: public void setWidthByClient(String width);
40:
41: /** Sets the height of the component, caused by user's activity at
42: * the client.
43: * <p>This method is designed to be used by ZK update engine.
44: * Don't invoke it directly. Otherwise, the client and server
45: * might mismatch.
46: */
47: public void setHeightByClient(String height);
48: }
|