01: /* SharedListModel.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Oct 9, 2007 3:09:13 PM 2007, Created by Dennis.Chen
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.zkex.zul;
20:
21: import org.zkoss.zk.ui.Desktop;
22: import org.zkoss.zul.ListModel;
23:
24: /**
25: * This interface is created for sharing model to different desktop's component.<br/>
26: * The implementation of this interface should provide built-in Server Push mechanism.
27: *
28: *
29: * @author Dennis.Chen
30: * @since 3.0.0
31: */
32: public interface ListModelSharer {
33:
34: /**
35: * Get a proxy which is to be used in listbox or grid of a desktop.
36: * @param desktop a desktop
37: * @return a ListModel proxy
38: */
39: ListModel getProxy(Desktop desktop);
40:
41: /**
42: * Get the count of created proxy.
43: * @return the created proxy count
44: */
45: int getProxyCount();
46: }
|