示例#1
0
 public void setStoresModel(DualListModel<StoreData> storesModel) {
   this.storesModel = storesModel;
   log.debug("target size : " + storesModel.getTarget().size());
   List<String> ids = new ArrayList<String>();
   for (StoreData data : storesModel.getTarget()) ids.add(data.getUuid());
   if (ids.size() > 0) getUserForm().getUser().setStoreIds(ids);
 }
示例#2
0
 public void setSelectedUserStores(DualListModel<StoreData> storesModel) {
   getUserForm().setSelectedUserStoresModel(storesModel);
   List<String> ids = new ArrayList<String>();
   for (StoreData data : getUserForm().getSelectedUserStoresModel().getTarget())
     ids.add(data.getUuid());
   if (ids.size() > 0) getUserForm().getSelectedUser().setStoreIds(ids);
 }