Package org.exoplatform.webui.organization.account

Examples of org.exoplatform.webui.organization.account.UIUserSelector


        listOption.add(option);
    }

    public static class AddActionListener extends EventListener<UIUserSelector> {
        public void execute(Event<UIUserSelector> event) throws Exception {
            UIUserSelector uiForm = event.getSource();
            UIGroupMembershipForm uiParent = uiForm.getAncestorOfType(UIGroupMembershipForm.class);
            uiParent.setUserName(uiForm.getSelectedUsers());
            UIPopupWindow uiPopup = uiParent.getChild(UIPopupWindow.class);
            uiPopup.setUIComponent(null);
            uiPopup.setShow(false);
            event.getRequestContext().addUIComponentToUpdateByAjax(uiParent);
        }
View Full Code Here


        }
    }

    public static class CloseActionListener extends EventListener<UIUserSelector> {
        public void execute(Event<UIUserSelector> event) throws Exception {
            UIUserSelector uiForm = event.getSource();
            UIGroupMembershipForm uiParent = uiForm.getAncestorOfType(UIGroupMembershipForm.class);
            UIPopupWindow uiPopup = uiParent.getChild(UIPopupWindow.class);
            uiPopup.setUIComponent(null);
            uiPopup.setShow(false);
            event.getRequestContext().addUIComponentToUpdateByAjax(uiParent);
        }
View Full Code Here

    public static class SearchUserActionListener extends EventListener<UIGroupMembershipForm> {
        public void execute(Event<UIGroupMembershipForm> event) throws Exception {
            UIGroupMembershipForm uiGroupForm = event.getSource();
            UIPopupWindow searchUserPopup = uiGroupForm.getChild(UIPopupWindow.class);
            UIUserSelector userSelector = uiGroupForm.createUIComponent(UIUserSelector.class, null, null);
            userSelector.setShowSearchGroup(false);
            String userName = uiGroupForm.getUIStringInput(USER_NAME).getValue();
            userSelector.getUIStringInput(UIUserSelector.FIELD_KEYWORD).setValue(userName);
            searchUserPopup.setUIComponent(userSelector);
            searchUserPopup.setShow(true);

            // TODO tamnd PORTAL-3010 searching a user in the add member form does not work.
            String filter = userSelector.getUIFormSelectBox(UIUserSelector.FIELD_FILTER).getValue();
            String groupId = userSelector.getSelectedGroup();

            userSelector.search(userName, filter, groupId);
            // modified by Pham Dinh Tan
            // UIListUsers form = (UIListUsers) searchUserPopup.getUIComponent();
            // String name = uiGroupForm.getUIStringInput("username").getValue();
            // UISearchForm uiSearchForm = form.getUISearchForm();
            // uiSearchForm.getUIStringInput("searchTerm").setValue(name);
View Full Code Here

   static public class AddActionListener extends EventListener<UIUserSelector>
   {
      public void execute(Event<UIUserSelector> event) throws Exception
      {
         UIUserSelector uiForm = event.getSource();
         UIGroupMembershipForm uiParent = uiForm.getAncestorOfType(UIGroupMembershipForm.class);
         uiParent.setUserName(uiForm.getSelectedUsers());
         UIPopupWindow uiPopup = uiParent.getChild(UIPopupWindow.class);
         uiPopup.setUIComponent(null);
         uiPopup.setShow(false);
         event.getRequestContext().addUIComponentToUpdateByAjax(uiParent);
      }
View Full Code Here

   static public class CloseActionListener extends EventListener<UIUserSelector>
   {
      public void execute(Event<UIUserSelector> event) throws Exception
      {
         UIUserSelector uiForm = event.getSource();
         UIGroupMembershipForm uiParent = uiForm.getAncestorOfType(UIGroupMembershipForm.class);
         UIPopupWindow uiPopup = uiParent.getChild(UIPopupWindow.class);
         uiPopup.setUIComponent(null);
         uiPopup.setShow(false);
         event.getRequestContext().addUIComponentToUpdateByAjax(uiParent);
      }
View Full Code Here

   {
      public void execute(Event<UIGroupMembershipForm> event) throws Exception
      {
         UIGroupMembershipForm uiGroupForm = event.getSource();
         UIPopupWindow searchUserPopup = uiGroupForm.getChild(UIPopupWindow.class);
         UIUserSelector userSelector = uiGroupForm.createUIComponent(UIUserSelector.class, null, null);
         userSelector.setShowSearchGroup(false);
         String userName = uiGroupForm.getUIStringInput(USER_NAME).getValue();
         userSelector.getUIStringInput(UIUserSelector.FIELD_KEYWORD).setValue(userName);
         searchUserPopup.setUIComponent(userSelector);
         searchUserPopup.setShow(true);

         // TODO tamnd PORTAL-3010 searching a user in the add member form does not work.
         String filter = userSelector.getUIFormSelectBox(UIUserSelector.FIELD_FILTER).getValue();
         String groupId = userSelector.getSelectedGroup();

         userSelector.search(userName, filter, groupId);
         //modified by Pham Dinh Tan
         //UIListUsers form = (UIListUsers) searchUserPopup.getUIComponent();
         //      String name = uiGroupForm.getUIStringInput("username").getValue();
         //      UISearchForm uiSearchForm = form.getUISearchForm();
         //      uiSearchForm.getUIStringInput("searchTerm").setValue(name);
View Full Code Here

TOP

Related Classes of org.exoplatform.webui.organization.account.UIUserSelector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.