* in the participant set returned
*/
public UniversalPopup showInPopup(ParticipantId user, Set<ParticipantId> participants,
ProfileManager profiles) {
PopupChrome chrome = PopupChromeFactory.createPopupChrome();
UniversalPopup popup = PopupFactory.createPopup(
null, new CenterPopupPositioner(), chrome, true);
TitleBar titleBar = popup.getTitleBar();
titleBar.setTitleText("Select participants");
popup.add(ParticipantSelectorWidget.this);
this.user = user;
this.participants = new HashSet<ParticipantId>(participants);
this.profiles = profiles;
// If there is only one participant, create the wave without showing the popup
if (participants.size() == 1) {
if (listener != null) {
listener.onSelect(participants);
}
return popup;
}
createParticipantList(participants);
popup.show();
setFocusAndHeight();
return popup;
}