public class SimpleListModelSharer<T> extends java.lang.Object implements ListModelSharer<T>
ListModelSharerAvailable 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 and Description |
|---|
SimpleListModelSharer(ListModel<T> model) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public ListModel<T> getProxy(Desktop desktop)
getProxy in interface ListModelSharer<T>desktop - a desktoppublic int getProxyCount()
getProxyCount in interface ListModelSharer<T>Copyright © 2005-2011 Potix Corporation. All Rights Reserved.