Beispiel #1
0
 public UIUserContainer() throws Exception {
   UIUserSelector uiUserSelector = getChild(UIUserSelector.class);
   if (uiUserSelector == null) {
     uiUserSelector = addChild(UIUserSelector.class, null, null);
   }
   uiUserSelector.setMulti(false);
   uiUserSelector.setShowSearchGroup(true);
   uiUserSelector.setShowSearchUser(true);
   uiUserSelector.setShowSearch(true);
 }
 public void execute(Event<UIUserSelector> event) throws Exception {
   UIUserSelector uiForm = event.getSource();
   UIPermissionManagerBase uiParent = uiForm.getAncestorOfType(UIPermissionManagerBase.class);
   UIPermissionFormBase uiPermissionForm = uiParent.getChild(UIPermissionFormBase.class);
   uiPermissionForm.doSelect(UIPermissionInputSet.FIELD_USERORGROUP, uiForm.getSelectedUsers());
   UIPopupWindow uiPopup = uiParent.getChild(UIPopupWindow.class);
   uiPopup.setUIComponent(null);
   uiPopup.setShow(false);
   event.getRequestContext().addUIComponentToUpdateByAjax(uiParent);
 }
Beispiel #3
0
 public void execute(Event<UIUserContainer> event) throws Exception {
   UIUserContainer uiUserContainer = event.getSource();
   UIUserSelector uiUserSelector = uiUserContainer.getChild(UIUserSelector.class);
   UIPermissionManager uiParent = uiUserContainer.getAncestorOfType(UIPermissionManager.class);
   UIPermissionForm uiPermissionForm = uiParent.getChild(UIPermissionForm.class);
   uiPermissionForm.doSelect(
       UIPermissionInputSet.FIELD_USERORGROUP, uiUserSelector.getSelectedUsers());
   UIPopupWindow uiPopup = uiParent.findComponentById("PopupUserSelector");
   uiPopup.setShow(false);
   event.getRequestContext().addUIComponentToUpdateByAjax(uiParent);
 }
Beispiel #4
0
 public void execute(Event<UIUserSelector> event) throws Exception {
   UIUserSelector uiUserSelector = event.getSource();
   UIPopupWindow popupWindow = uiUserSelector.getParent();
   closePopupWindow(popupWindow);
 }