|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zkex.zul.SimpleListModelSharer<T>
public class SimpleListModelSharer<T>
SimpleListModelSharer is a simple implementation of ListModelSharer
Available in ZK PE and ZK EE.
To use this class, you should create a global ListModel first,
and then create SimpleListModelSharer with the global list model.
ListModel globalModel = new ListModelList();
SimpleSharedListModel sharedModel = new SimpleSharedListModel(globalModel);
Then, in each desktop, you get a proxy by call getProxy(Desktop) and associate it to listbox or gird.
ListModel model = sharedModel.getProxy(desktop);
listbox.setModel(model);
| Constructor Summary | |
|---|---|
SimpleListModelSharer(ListModel<T> model)
|
|
| Method Summary | |
|---|---|
ListModel<T> |
getProxy(Desktop desktop)
Get a proxy which is to be used in listbox or grid of a desktop. |
int |
getProxyCount()
Get the count of created proxy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleListModelSharer(ListModel<T> model)
model - the model to be shared to different desktop.| Method Detail |
|---|
public ListModel<T> getProxy(Desktop desktop)
getProxy in interface ListModelSharer<T>desktop - a desktop
public int getProxyCount()
getProxyCount in interface ListModelSharer<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||