92 rows.appendChild(row);
94 Vbox vbox =
new Vbox();
95 vbox.setWidth(
"100%");
96 row.appendChild(vbox);
98 final ContactCombobox contact =
new ContactCombobox();
99 contact.setRole(
"dossier:list");
100 contact.setIContact(p.getIContact());
101 contact.addEventListener(Events.ON_CHANGE,
new EventListener() {
103 public void onEvent(Event event)
throws Exception {
104 IContact ci = contact.getIContact();
105 p.setIdContact(ci.getId());
107 p.setName(ci.getName());
112 vbox.appendChild(contact);
114 final Checkbox cbAttach =
new Checkbox(I_.get(
"Show all attachments"));
115 cbAttach.setStyle(
"font-size:11px;color:#444;");
116 cbAttach.setChecked(p.isShowAllAttachments());
117 cbAttach.addEventListener(Events.ON_CHECK,
new EventListener() {
120 public void onEvent(Event event)
throws Exception {
121 p.setShowAllAttachments(cbAttach.isChecked());
125 vbox.appendChild(cbAttach);
127 final Checkbox cbIssues =
new Checkbox(I_.get(
"Show all issues"));
128 cbIssues.setStyle(
"font-size:11px;color:#444;");
129 cbIssues.setChecked(p.isShowAllIssues());
130 cbIssues.addEventListener(Events.ON_CHECK,
new EventListener() {
133 public void onEvent(Event event)
throws Exception {
134 p.setShowAllIssues(cbIssues.isChecked());
138 vbox.appendChild(cbIssues);
140 final Checkbox cbEmails =
new Checkbox(I_.get(
"Receive all emails"));
141 cbEmails.setStyle(
"font-size:11px;color:#444;");
142 cbEmails.setChecked(p.isReceiveAllEmails());
143 cbEmails.addEventListener(Events.ON_CHECK,
new EventListener() {
146 public void onEvent(Event event)
throws Exception {
147 p.setReceiveAllEmails(cbEmails.isChecked());
151 vbox.appendChild(cbEmails);
153 final Checkbox cbParticipants =
new Checkbox(I_.get(
"Show participants"));
154 cbParticipants.setStyle(
"font-size:11px;color:#444;");
155 cbParticipants.setChecked(p.isShowParticipants());
156 cbParticipants.addEventListener(Events.ON_CHECK,
new EventListener() {
159 public void onEvent(Event event)
throws Exception {
160 p.setShowParticipants(cbParticipants.isChecked());
164 vbox.appendChild(cbParticipants);
166 final Checkbox cbBinding =
new Checkbox(I_.get(
"Binding votes"));
167 cbBinding.setStyle(
"font-size:11px;color:#444;");
168 cbBinding.setChecked(p.isBindingVote());
169 cbBinding.addEventListener(Events.ON_CHECK,
new EventListener() {
172 public void onEvent(Event event)
throws Exception {
173 p.setBindingVote(cbBinding.isChecked());
177 vbox.appendChild(cbBinding);
179 final Listbox role =
new Listbox();
180 role.setMold(
"select");
181 role.addEventListener(Events.ON_SELECT,
new EventListener() {
184 public void onEvent(Event event)
throws Exception {
185 p.setRole((ParticipantRole) role.getSelectedItem().getValue());
186 if(p.getRole().equals(ParticipantRole.PARTICIPANT_SUBJECT)) {
189 contact.setRole(
"dossier:list");
194 row.appendChild(role);
196 for(ParticipantRole pr : ParticipantRole.values()) {
197 Listitem li =
new Listitem(I_.byKey(pr.toString()));
199 li.setSelected(li.getValue().equals(p.getRole()));
200 role.appendChild(li);
Set< CategoryParticipant > getParticipants()