- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 31 of file ContactModel.java.
◆ ContactModel() [1/2]
org.turro.contacts.model.ContactModel.ContactModel |
( |
Dao |
dao, |
|
|
Collection< String > |
contactIds |
|
) |
| |
Definition at line 33 of file ContactModel.java.
34 boolean open = contactIds.size() == 1;
35 for(String
id : contactIds) {
36 add(
new ContactItem(dao,
id, open));
◆ ContactModel() [2/2]
org.turro.contacts.model.ContactModel.ContactModel |
( |
Dao |
dao, |
|
|
ContactItem |
selected |
|
) |
| |
Definition at line 40 of file ContactModel.java.
41 add(
new ContactItem(dao, selected.getContactId(),
true));
◆ deselectAll()
void org.turro.contacts.model.ContactModel.deselectAll |
( |
| ) |
|
◆ getSelected()
List<ContactItem> org.turro.contacts.model.ContactModel.getSelected |
( |
| ) |
|
Definition at line 49 of file ContactModel.java.
50 return stream().filter(ci -> ci.isSelected()).collect(Collectors.toList());
◆ getSelectedOrAll()
List<ContactItem> org.turro.contacts.model.ContactModel.getSelectedOrAll |
( |
| ) |
|
◆ selectAll()
void org.turro.contacts.model.ContactModel.selectAll |
( |
| ) |
|
◆ toggleSelection()
void org.turro.contacts.model.ContactModel.toggleSelection |
( |
| ) |
|
Definition at line 61 of file ContactModel.java.
62 forEach(ci -> ci.setSelected(!ci.isSelected()));
The documentation for this class was generated from the following file: