public class SelectUsersPopupWindow extends PopupWindow
SubmitEventListener
can be attached to listen to completion of the
selection. The selected user(s) can be retrieved using getSelectedUserId()
,getSelectedUserIds()
and getSelectedUserRole(String)
.com.vaadin.ui.Window.CloseEvent, com.vaadin.ui.Window.CloseListener, com.vaadin.ui.Window.CloseShortcut, com.vaadin.ui.Window.Notification, com.vaadin.ui.Window.ResizeEvent, com.vaadin.ui.Window.ResizeListener
com.vaadin.ui.AbstractComponent.ComponentErrorEvent, com.vaadin.ui.AbstractComponent.ComponentErrorHandler
com.vaadin.terminal.URIHandler.ErrorEvent
com.vaadin.terminal.ParameterHandler.ErrorEvent
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.ErrorListener, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
com.vaadin.terminal.Paintable.RepaintRequestEvent, com.vaadin.terminal.Paintable.RepaintRequestListener
com.vaadin.ui.ComponentContainer.ComponentAttachEvent, com.vaadin.ui.ComponentContainer.ComponentAttachListener, com.vaadin.ui.ComponentContainer.ComponentDetachEvent, com.vaadin.ui.ComponentContainer.ComponentDetachListener
Modifier and Type | Field and Description |
---|---|
protected com.vaadin.ui.Button |
doneButton |
protected I18nManager |
i18nManager |
protected Collection<String> |
ignoredUserIds |
protected com.vaadin.ui.Table |
matchingUsersTable |
protected boolean |
multiSelect |
protected com.vaadin.ui.TextField |
searchField |
protected com.vaadin.ui.Table |
selectedUsersTable |
protected com.vaadin.ui.Button |
selectUserButton |
protected boolean |
showRoles |
protected String |
title |
protected com.vaadin.ui.HorizontalLayout |
userSelectionLayout |
protected com.vaadin.ui.VerticalLayout |
windowLayout |
Constructor and Description |
---|
SelectUsersPopupWindow(String title,
boolean multiSelect) |
SelectUsersPopupWindow(String title,
boolean multiSelect,
boolean showRoles,
Collection<String> ignoredUserIds) |
SelectUsersPopupWindow(String title,
boolean multiSelect,
Collection<String> ignoredUserIds) |
Modifier and Type | Method and Description |
---|---|
protected void |
addMatchingUser(String userId,
String name) |
void |
attach() |
String |
getSelectedUserId() |
Collection<String> |
getSelectedUserIds() |
String |
getSelectedUserRole(String userId) |
protected void |
initDoneButton() |
protected void |
initMatchingUsersTable() |
protected void |
initSearchField() |
protected void |
initSelectedUsersTable() |
protected void |
initSelectMyselfButton(com.vaadin.ui.HorizontalLayout searchLayout) |
protected void |
initSelectUserButton() |
protected void |
initUi() |
protected void |
initUserSelection() |
protected boolean |
matchesSearchField(String text) |
protected void |
searchPeople(String searchText) |
protected void |
selectUser(String userId,
String userName) |
setParent
addComponent, addListener, addListener, addListener, addListener, addParameterHandler, addURIHandler, addWindow, bringToFront, center, changeVariables, close, detach, executeJavaScript, fireClose, fireResize, focus, getApplication, getBorder, getBrowserWindowHeight, getBrowserWindowWidth, getChildWindows, getName, getParent, getPositionX, getPositionY, getTerminal, getTheme, getURL, getWindow, handleParameters, handleURI, isClosable, isDraggable, isModal, isResizable, isResizeLazy, open, open, open, open, paintContent, removeCloseShortcut, removeListener, removeListener, removeListener, removeListener, removeParameterHandler, removeURIHandler, removeWindow, scrollIntoView, setApplication, setBorder, setClosable, setCloseShortcut, setDraggable, setModal, setName, setPositionX, setPositionY, setResizable, setResizeLazy, setTerminal, setTheme, showNotification, showNotification, showNotification, showNotification, showNotification, showNotification
addAction, addActionHandler, addListener, componentAttachedToContainer, componentDetachedFromContainer, getActionManager, getComponentIterator, getContent, getLayout, getScrollLeft, getScrollOffsetX, getScrollOffsetY, getScrollTop, getTabIndex, isScrollable, removeAction, removeActionHandler, removeAllActionHandlers, removeAllComponents, removeComponent, removeListener, replaceComponent, requestRepaintAll, setCaption, setContent, setLayout, setScrollable, setScrollLeft, setScrollOffsetX, setScrollOffsetY, setScrollTop, setTabIndex
addListener, addListener, fireComponentAttachEvent, fireComponentDetachEvent, moveComponentsFrom, removeListener, removeListener, setEnabled, setHeight, setWidth
addListener, addListener, addListener, addListener, addListener, addStyleName, childRequestedRepaint, fireComponentErrorEvent, fireComponentEvent, fireEvent, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorHandler, getErrorMessage, getHeight, getHeightUnits, getIcon, getListeners, getLocale, getStyle, getStyleName, getWidth, getWidthUnits, handleError, hasListeners, isEnabled, isImmediate, isReadOnly, isVisible, paint, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeStyleName, requestRepaint, requestRepaintRequests, setComponentError, setData, setDebugId, setDescription, setErrorHandler, setHeight, setHeight, setHeightUnits, setIcon, setImmediate, setLocale, setReadOnly, setSizeFull, setSizeUndefined, setStyle, setStyleName, setVisible, setWidth, setWidth, setWidthUnits
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, addStyleName, childRequestedRepaint, getCaption, getIcon, getLocale, getStyleName, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setEnabled, setIcon, setReadOnly, setStyleName, setVisible
protected String title
protected boolean multiSelect
protected boolean showRoles
protected Collection<String> ignoredUserIds
protected I18nManager i18nManager
protected com.vaadin.ui.VerticalLayout windowLayout
protected com.vaadin.ui.TextField searchField
protected com.vaadin.ui.HorizontalLayout userSelectionLayout
protected com.vaadin.ui.Table matchingUsersTable
protected com.vaadin.ui.Button selectUserButton
protected com.vaadin.ui.Table selectedUsersTable
protected com.vaadin.ui.Button doneButton
public SelectUsersPopupWindow(String title, boolean multiSelect)
public SelectUsersPopupWindow(String title, boolean multiSelect, Collection<String> ignoredUserIds)
public SelectUsersPopupWindow(String title, boolean multiSelect, boolean showRoles, Collection<String> ignoredUserIds)
public void attach()
attach
in interface com.vaadin.ui.Component
attach
in class PopupWindow
protected void initUi()
protected void initSearchField()
protected void initSelectMyselfButton(com.vaadin.ui.HorizontalLayout searchLayout)
protected void searchPeople(String searchText)
protected void initUserSelection()
protected void initMatchingUsersTable()
protected void initSelectUserButton()
protected void initSelectedUsersTable()
protected boolean matchesSearchField(String text)
protected void initDoneButton()
public String getSelectedUserId()
public Collection<String> getSelectedUserIds()
Copyright © 2016 Alfresco. All rights reserved.