01: /* ComboitemRenderer.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Dec 27, 2007 11:25:46 AM , Created by jumperchen
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.zul;
20:
21: /**
22: * Identifies components that can be used as "rubber stamps" to paint
23: * the cells in a {@link Combobox}.
24: *
25: * <p>If you need better control, your renderer can also implement
26: * {@link ComboitemRendererExt}.
27: *
28: * <p>In addition, you could also
29: * implement {@link RendererCtrl}. For example, starts an transaction,
30: * and uses it to render all items for the same request.
31: *
32: * @author jumperchen
33: * @see ListModel
34: * @see Combobox
35: * @see ComboitemRendererExt
36: *
37: */
38: public interface ComboitemRenderer {
39: /** Renders the data to the specified comboitem.
40: *
41: * @param item the comboitem to render the result.
42: * @param data that is returned from {@link ListModel#getElementAt}
43: */
44: public void render(Comboitem item, Object data) throws Exception;
45: }
|