108 rows.appendChild(row);
110 final ContactCombobox contact =
new ContactCombobox();
111 contact.setRole(
"issue:list");
112 contact.setIContact(p.getIContact());
113 contact.addEventListener(Events.ON_CHANGE,
new EventListener() {
115 public void onEvent(Event event)
throws Exception {
116 IContact c = p.getIContact();
118 p.setIdContact(c.getId());
119 p.setName(c.getName());
124 row.appendChild(contact);
126 final Listbox role =
new Listbox();
127 role.setMold(
"select");
128 role.addEventListener(Events.ON_SELECT,
new EventListener() {
131 public void onEvent(Event event)
throws Exception {
132 p.setRole((IssueParticipantRole) role.getSelectedItem().getValue());
136 row.appendChild(role);
138 for(IssueParticipantRole ipr : IssueParticipantRole.values()) {
139 Listitem li =
new Listitem(I_.byKey(ipr.toString()));
141 li.setSelected(li.getValue().equals(p.getRole()));
142 role.appendChild(li);
149 rows.appendChild(row);
151 if(p instanceof IDossierParticipant) {
152 IDossierParticipant cp = (IDossierParticipant) p;
153 if(cp.isShowAllIssues()) {
154 Hbox hbox =
new Hbox();
155 row.appendChild(hbox);
156 hbox.appendChild(
new Image(
"/_zul/images/forward.png"));
157 if(cp.isReceiveAllEmails()) {
158 hbox.appendChild(
new Image(
"/_zul/images/mail_forward.png"));
160 hbox.appendChild(
new ContactInfo((Contact) cp.getIContact().getContact()));
161 Label label =
new Label(I_.byKey(cp.getRole().toString()));
162 row.appendChild(label);
164 }
else if(p instanceof IssueParticipant) {
165 IssueParticipant cp = (IssueParticipant) p;
166 Hbox hbox =
new Hbox();
167 row.appendChild(hbox);
168 hbox.appendChild(
new Image(
"/_zul/images/mail_forward.png"));
169 hbox.appendChild(
new ContactInfo((Contact) cp.getIContact().getContact()));
170 Label label =
new Label(I_.byKey(cp.getRole().toString()));
171 row.appendChild(label);
ParticipantSet getFullParticipants()
Set< IssueParticipant > getParticipants()