01: /* RenderOnDemand.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Thu Aug 18 23:46:02 2005, Created by tomyeh
10: }}IS_NOTE
11:
12: Copyright (C) 2005 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: import java.util.Set;
22:
23: /**
24: * Used to decorate a {@link org.zkoss.zk.ui.Component} object that
25: * it supports render-on-demand. In other words, the component renders
26: * its content only the client request for it.
27: * A typical example is Listbox (it is similar to JList and ListModel in
28: * Swing).
29: *
30: * <p>This interface is moved from the org.zkoss.zk.ui.ext package
31: * since ZK 2.4.1.
32: *
33: * @author tomyeh
34: * @since 2.4.1
35: */
36: public interface RenderOnDemand {
37: /** Renders a set of specified items, if they are not rendered before.
38: * If an item was rendered before, nothing is changed.
39: */
40: public void renderItems(Set items);
41: }
|