19 package org.turro.contacts.model;
21 import java.util.Collection;
22 import java.util.List;
23 import java.util.stream.Collectors;
24 import org.turro.jpa.Dao;
25 import org.zkoss.zul.ListModelList;
34 boolean open = contactIds.size() == 1;
35 for(String
id : contactIds) {
46 return sel.isEmpty() ? this : sel;
50 return stream().filter(ci -> ci.isSelected()).collect(Collectors.toList());
54 forEach(ci -> ci.setSelected(
true));
58 forEach(ci -> ci.setSelected(
false));
62 forEach(ci -> ci.setSelected(!ci.isSelected()));