01: /* ChildChangedAware.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Sun Aug 27 12:13:44 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.render;
20:
21: /**
22: * Implemented by the object returned by {@link org.zkoss.zk.ui.sys.ComponentCtrl#getExtraCtrl}
23: * if a component requires the <code>z.chchg</code> command,
24: * when any of its children and descendants are changed.
25: *
26: * <p>Once a component implements this interface and {@link #isChildChangedAware}
27: * returns true, the <code>z.chchg</code> command is sent to the client
28: * to update the visual representation. For example, a grid uses two tables
29: * to implement header and body, and then it has to re-align the header
30: * once any of its descendants is changed.
31: *
32: * @author tomyeh
33: */
34: public interface ChildChangedAware {
35: /** Returns whether to send the <code>z.chchg</code> command
36: * to the client.
37: */
38: public boolean isChildChangedAware();
39: }
|