Package org.exoplatform.webui.core

Examples of org.exoplatform.webui.core.UIPopupWindow


        super.processRender(context);

        UIPageSelector uiPageSelector = getChild(UIPageSelector.class);
        if (uiPageSelector == null)
            return;
        UIPopupWindow uiPopupWindowPage = uiPageSelector.getChild(UIPopupWindow.class);
        if (uiPopupWindowPage == null)
            return;
        uiPopupWindowPage.processRender(context);
    }
View Full Code Here


            PortalRequestContext prContext = Util.getPortalRequestContext();
            UINavigationManagement uiManagement = event.getSource();
            UINavigationNodeSelector uiNodeSelector = uiManagement.getChild(UINavigationNodeSelector.class);
            UserPortalConfigService portalConfigService = uiManagement.getApplicationComponent(UserPortalConfigService.class);

            UIPopupWindow uiPopup = uiManagement.getParent();
            uiPopup.createEvent("ClosePopup", Phase.PROCESS, event.getRequestContext()).broadcast();

            UIPortalApplication uiPortalApp = (UIPortalApplication) prContext.getUIApplication();
            UIWorkingWorkspace uiWorkingWS = uiPortalApp.getChildById(UIPortalApplication.UI_WORKING_WS_ID);
            prContext.addUIComponentToUpdateByAjax(uiWorkingWS);
            prContext.setFullRender(true);
View Full Code Here

   {
      UIVirtualList virtualList = addChild(UIVirtualList.class, null, "AddGroupNavList");
      virtualList.setPageSize(6);
      UIRepeater repeater = createUIComponent(UIRepeater.class, "UIAddGroupNavigationGrid", null);
      virtualList.setUIComponent(repeater);
      UIPopupWindow editGroup = addChild(UIPopupWindow.class, null, "EditGroup");
   }
View Full Code Here

         UIGroupMembershipSelector uiSelector = uiComp.getParent();
         uiSelector.changeGroup(groupId);
         UIComponent uiPermission = uiSelector.<UIComponent> getParent().getParent();
         uiPermission.setRenderSibling(uiPermission.getClass());
         uiPermission.broadcast(event, Event.Phase.PROCESS);
         UIPopupWindow uiPopup = uiSelector.getParent();
         uiPopup.setShow(true);
         event.getRequestContext().addUIComponentToUpdateByAjax(uiPopup);//TODO: Update relevant tab panes
      }
View Full Code Here

         UIGroupMembershipSelector uiSelector = event.getSource();
         UIComponent uiPermission = uiSelector.<UIComponent> getParent().getParent();
         uiPermission.setRenderSibling(uiPermission.getClass());
         WebuiRequestContext pcontext = event.getRequestContext();

         UIPopupWindow uiPopup = uiSelector.getParent();
         UIForm uiForm = uiSelector.getAncestorOfType(UIForm.class);

         if (uiSelector.getCurrentGroup() == null)
         {
            UIApplication uiApp = pcontext.getUIApplication();
            uiApp.addMessage(new ApplicationMessage("UIGroupMembershipSelector.msg.selectGroup", null));
            uiPopup.setShow(true);
            return;
         }
         event.getRequestContext().addUIComponentToUpdateByAjax(uiPermission);

         uiPermission.broadcast(event, event.getExecutionPhase());
         uiPopup.setShow(false);

      }
View Full Code Here

         String objectId = event.getRequestContext().getRequestParameter(OBJECTID);
         uiBreadcumbs.setSelectPath(objectId);
         String selectGroupId = uiBreadcumbs.getSelectLocalPath().getId();
         uiSelector.changeGroup(selectGroupId);

         UIPopupWindow uiPopup = uiSelector.getParent();
         uiPopup.setShow(true);

         event.getRequestContext().addUIComponentToUpdateByAjax(uiPopup);//TODO: Update relevant tab panes
      }
View Full Code Here

         PageNavigation persistNavigation =  dataService.getPageNavigation(editedOwnerType, editedOwnerId);
         if (persistNavigation == null)
         {
            UIApplication uiApp = Util.getPortalRequestContext().getUIApplication();
            uiApp.addMessage(new ApplicationMessage("UINavigationManagement.msg.NavigationNotExistAnymore", null));
            UIPopupWindow uiPopup = uiManagement.getParent();
            uiPopup.setShow(false);
            UIPortalApplication uiPortalApp = (UIPortalApplication)prContext.getUIApplication();
            UIWorkingWorkspace uiWorkingWS = uiPortalApp.getChildById(UIPortalApplication.UI_WORKING_WS_ID);
            prContext.addUIComponentToUpdateByAjax(uiWorkingWS);
            prContext.setFullRender(true);
            return;
         }
        
         if(PortalConfig.PORTAL_TYPE.equals(navigation.getOwnerType()))
         {
            UserPortalConfig portalConfig = portalConfigService.getUserPortalConfig(navigation.getOwnerId(), prContext.getRemoteUser());
            if(portalConfig != null)
            {
               dataService.save(navigation);
            }
            else
            {
               UIApplication uiApp = Util.getPortalRequestContext().getUIApplication();
               uiApp.addMessage(new ApplicationMessage("UIPortalForm.msg.notExistAnymore", null));
               UIPopupWindow uiPopup = uiManagement.getParent();
               uiPopup.setShow(false);
               UIPortalApplication uiPortalApp = (UIPortalApplication)prContext.getUIApplication();
               UIWorkingWorkspace uiWorkingWS = uiPortalApp.getChildById(UIPortalApplication.UI_WORKING_WS_ID);
               prContext.addUIComponentToUpdateByAjax(uiWorkingWS);
               prContext.setFullRender(true);
               return;
            }
         }
         else
         {
            dataService.save(navigation);
         }

         // Reload navigation here as some navigation could exist in the back end such as system navigations
         // that would not be in the current edited UI navigation
         navigation = dataService.getPageNavigation(navigation.getOwnerType(), navigation.getOwnerId());

         UIPortalApplication uiPortalApp = Util.getUIPortalApplication();
         setNavigation(uiPortalApp.getNavigations(), navigation);

         // Need to relocalize as it was loaded from storage
         uiPortalApp.localizeNavigations();
        
         //Update UIPortal corredponding to edited navigation
         UIPortal targetedUIPortal = uiPortalApp.getCachedUIPortal(editedOwnerType, editedOwnerId);
         if(targetedUIPortal != null)
         {
            targetedUIPortal.setNavigation(navigation);
         }
        
         UIPopupWindow uiPopup = uiManagement.getParent();
         uiPopup.setShow(false);
         UIWorkingWorkspace uiWorkingWS = uiPortalApp.getChildById(UIPortalApplication.UI_WORKING_WS_ID);
         prContext.addUIComponentToUpdateByAjax(uiWorkingWS);
         prContext.setFullRender(true);
      }
View Full Code Here

      @Override
      public void execute(Event<UINavigationManagement> event) throws Exception
      {
         UINavigationManagement uiManagement = event.getSource();
         UINavigationNodeSelector uiNodeSelector = uiManagement.getChild(UINavigationNodeSelector.class);
         UIPopupWindow uiManagementPopup = uiNodeSelector.getAncestorOfType(UIPopupWindow.class);
         UIPageNodeForm uiNodeForm = uiManagementPopup.createUIComponent(UIPageNodeForm.class, null, null);
         uiNodeForm.setValues(null);
         uiManagementPopup.setUIComponent(uiNodeForm);
         PageNavigation nav = uiNodeSelector.getEdittedNavigation();
         uiNodeForm.setSelectedParent(nav);

         uiNodeForm.setContextPageNavigation(nav);

         uiManagementPopup.setWindowSize(800, 500);
         event.getRequestContext().addUIComponentToUpdateByAjax(uiManagementPopup.getParent());
      }
View Full Code Here

         showNoResultMessagePopup();
      }

      if (this.<UIComponent> getParent() instanceof UIPopupWindow)
      {
         UIPopupWindow popupWindow = getParent();
         popupWindow.setShow(true);
      }
   }
View Full Code Here

      {
         String uri = event.getRequestContext().getRequestParameter(UIComponent.OBJECTID);
         UIRightClickPopupMenu uiPopupMenu = event.getSource();

         UINavigationNodeSelector uiNodeSelector = uiPopupMenu.getAncestorOfType(UINavigationNodeSelector.class);
         UIPopupWindow uiManagementPopup = uiNodeSelector.getAncestorOfType(UIPopupWindow.class);
         UIPageNodeForm uiNodeForm = uiManagementPopup.createUIComponent(UIPageNodeForm.class, null, null);
         uiNodeForm.setValues(null);
         uiManagementPopup.setUIComponent(uiNodeForm);

         Object parent = null;
         PageNavigation edittedNavigation = uiNodeSelector.getEdittedNavigation();
         List<PageNode> pageNodes = edittedNavigation.getNodes();
         if (uri != null && uri.trim().length() > 0)
         {
            for (PageNode pageNode : pageNodes)
            {
               parent = PageNavigationUtils.searchPageNodeByUri(pageNode, uri);
               if (parent != null)
               {
                  break;
               }
            }
         }
         if (parent == null)
         {
            parent = edittedNavigation;
         }
        
         uiNodeForm.setSelectedParent(parent);

         uiNodeForm.setContextPageNavigation(edittedNavigation);
         uiManagementPopup.setWindowSize(800, 500);
         event.getRequestContext().addUIComponentToUpdateByAjax(uiManagementPopup.getParent());
      }
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.