Package org.exoplatform.webui.core

Examples of org.exoplatform.webui.core.UIPopupWindow


            {
               uiApp.addMessage(new ApplicationMessage("UIPageBrowser.msg.UserNotPermission", new String[]{pageId}, 1));;
               return;
            }
         }
         UIPopupWindow uiManagementPopup = uiNodeSelector.getAncestorOfType(UIPopupWindow.class);
         UIPageNodeForm uiNodeForm = uiApp.createUIComponent(UIPageNodeForm.class, null, null);
         uiManagementPopup.setUIComponent(uiNodeForm);

         uiNodeForm.setContextPageNavigation(edittedNav);
         uiNodeForm.setValues(selectedNode);
         uiNodeForm.setSelectedParent(obj);
         uiManagementPopup.setWindowSize(800, 500);
         event.getRequestContext().addUIComponentToUpdateByAjax(uiManagementPopup.getParent());
      }
View Full Code Here


      UIUserMembershipSelector uiUserMembershipSelector = getChild(UIUserMembershipSelector.class);
      if (uiUserMembershipSelector == null)
      {
         return;
      }
      UIPopupWindow uiPopupWindow = uiUserMembershipSelector.getChild(UIPopupWindow.class);
      if (uiPopupWindow == null)
      {
         return;
      }
      uiPopupWindow.processRender(context);
   }
View Full Code Here

   {
      addUIFormInput(new UIFormStringInput(USER_NAME, USER_NAME, null).addValidator(MandatoryValidator.class)
         .addValidator(ExpressionValidator.class, "^\\p{L}[\\p{L}\\d._\\-\\s*,\\s*]+$",
            "UIGroupMembershipForm.msg.Invalid-char"));
      addUIFormInput(new UIFormSelectBox("membership", "membership", listOption).setSize(1));
      UIPopupWindow searchUserPopup = addChild(UIPopupWindow.class, "SearchUser", "SearchUser");
      searchUserPopup.setWindowSize(640, 0);
      //    UIListUsers listUsers = createUIComponent(UIListUsers.class, null, "ListUserForSearch");
      //    searchUserPopup.setUIComponent(listUsers);
      //    UIGrid grid = listUsers.findFirstComponentOfType(UIGrid.class);
      //    grid.setId("SearchUserGrid");
      //    grid.configure(grid.getBeanIdField(), grid.getBeanFields(), new String[]{"SelectUser"});
View Full Code Here

      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 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

   static public 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();
View Full Code Here

    private String aggregatorId;

    private UIGadget maximizedGadget;

    public UIDashboard() throws Exception {
        UIPopupWindow popup = addChild(UIPopupWindow.class, null, GADGET_POPUP_ID + "-" + hashCode());
        popup.setUIComponent(createUIComponent(UIDashboardSelectContainer.class, null, null));
        addChild(UIDashboardContainer.class, null, null);
    }
View Full Code Here

    private String aggregatorId;

    private UIGadget maximizedGadget;

    public UIDashboard() throws Exception {
        UIPopupWindow popup = addChild(UIPopupWindow.class, null, GADGET_POPUP_ID + "-" + Math.abs(hashCode()));
        popup.setUIComponent(createUIComponent(UIDashboardSelectContainer.class, null, null));
        addChild(UIDashboardContainer.class, null, null);
    }
View Full Code Here

                UIPortalApplication uiPortalApp = (UIPortalApplication) prContext.getUIApplication();
                uiPortalApp.addMessage(new ApplicationMessage("UINavigationManagement.msg.NavigationNotExistAnymore", null));
                UIWorkingWorkspace uiWorkingWS = uiPortalApp.getChildById(UIPortalApplication.UI_WORKING_WS_ID);
                prContext.addUIComponentToUpdateByAjax(uiWorkingWS);
                prContext.setFullRender(true);
                UIPopupWindow uiPopup = uiForm.getParent();
                uiPopup.setShow(false);
                return;
            }

            UIFormSelectBox uiSelectBox = uiForm.findComponentById("priority");
            int priority = Integer.parseInt(uiSelectBox.getValue());

            // update navigation
            NavigationService service = uiForm.getApplicationComponent(NavigationService.class);
            NavigationContext ctx = service.loadNavigation(userNav.getKey());
            ctx.setState(new NavigationState(priority));
            service.saveNavigation(ctx);

            UIPopupWindow uiPopup = uiForm.getParent();
            uiPopup.setShow(false);
            UIComponent opener = uiPopup.getParent();

            ActionResponse response = event.getRequestContext().getResponse();
            response.setEvent(new QName("NavigationChange"), null);

            WebuiRequestContext pcontext = event.getRequestContext();
View Full Code Here

    }

    public static class CloseActionListener extends UIFormPopupWindow.CloseActionListener {
        @Override
        public void execute(Event<UIPopupWindow> event) throws Exception {
            UIPopupWindow popWindow = event.getSource();
            popWindow.setUIComponent(null);
            super.execute(event);
        }
View Full Code Here

TOP

Related Classes of org.exoplatform.webui.core.UIPopupWindow

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.