Package org.exoplatform.webui.core

Examples of org.exoplatform.webui.core.UIPopupWindow


        if (!dataAvailable) {
            showNoResultMessagePopup();
        }

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


        public void execute(Event<UIGroupSelector> event) throws Exception {
            UIGroupSelector uiSelector = event.getSource();
            UIComponent uiPermission = uiSelector.<UIComponent> getParent().getParent();
            WebuiRequestContext pcontext = event.getRequestContext();

            UIPopupWindow uiPopup = uiSelector.getParent();
            UIForm uiForm = event.getSource().getAncestorOfType(UIForm.class);
            if (uiForm != null) {
                event.getRequestContext().addUIComponentToUpdateByAjax(uiForm.getParent());
            } else {
                event.getRequestContext().addUIComponentToUpdateByAjax(uiPopup);
            }
            if (uiSelector.getCurrentGroup() == null) {
                UIApplication uiApp = pcontext.getUIApplication();
                uiApp.addMessage(new ApplicationMessage("UIGroupSelector.msg.selectGroup", null));
                uiPopup.setShow(true);
                return;
            }

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

            UIForm uiForm = event.getSource().getAncestorOfType(UIForm.class);
            if (uiForm != null) {
                event.getRequestContext().addUIComponentToUpdateByAjax(uiForm.getParent());
            } else {
View Full Code Here

        uiIterator_ = new UIPageIterator();
        uiIterator_.setPageList(objPageList);
        uiIterator_.setId("UISelectUserPage");

        // create group selector
        UIPopupWindow uiPopup = addChild(UIPopupWindow.class, null, "UIPopupGroupSelector");
        uiPopup.setWindowSize(540, 0);
        UIGroupSelector uiGroup = createUIComponent(UIGroupSelector.class, null, null);
        uiPopup.setUIComponent(uiGroup);
        uiGroup.setId("GroupSelector");
        uiGroup.getChild(UITree.class).setId("TreeGroupSelector");
        uiGroup.getChild(UIBreadcumbs.class).setId("BreadcumbsGroupSelector");
    }
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);
         UIPageNodeForm2 uiNodeForm = uiManagementPopup.createUIComponent(UIPageNodeForm2.class, null, null);
         uiNodeForm.setValues(null);
         uiManagementPopup.setUIComponent(uiNodeForm);

         Object parent = null;
         List<PageNode> pageNodes = uiNodeSelector.getSelectedNavigation().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 = uiNodeSelector.getSelectedNavigation();
         }
         uiNodeForm.setSelectedParent(parent);

         // set navigation owner, navigation type
         uiNodeForm.setOwner(uiNodeSelector.getSelectedNavigation().getOwnerId());
         uiNodeForm.setOwnerType(uiNodeSelector.getSelectedNavigation().getOwnerType());

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

      super.processRender(context);

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

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

         // set navigation owner, navigation type
         uiNodeForm.setOwner(uiNodeSelector.getSelectedNavigation().getOwnerId());
         uiNodeForm.setOwnerType(uiNodeSelector.getSelectedNavigation().getOwnerType());

         uiNodeForm.setValues(selectedNode);
         uiNodeForm.setSelectedParent(selectedNode);
         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

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

         WebuiRequestContext pcontext = event.getRequestContext();

         // if edit navigation
         if (pageNav != null)
         {
            uiForm.invokeSetBindingBean(pageNav);
            UIFormSelectBox uiSelectBox = uiForm.findComponentById("priority");
            int priority = Integer.parseInt(uiSelectBox.getValue());
            pageNav.setPriority(priority);

            // update navigation
            dataService.save(pageNav);

            UIPopupWindow uiPopup = uiForm.getParent();
            uiPopup.setShow(false);
            UIComponent opener = uiPopup.getParent();
            pcontext.addUIComponentToUpdateByAjax(opener);
            return;
         }

         // if add navigation
         pageNav = new PageNavigation();
         // set properties for navigation
         uiForm.invokeSetBindingBean(pageNav);
         UIFormStringInput uiOwnerId = uiForm.findComponentById("ownerId");
         UIFormStringInput uiOwnerType = uiForm.findComponentById("ownerType");
         UIFormSelectBox uiSelectBox = uiForm.findComponentById("priority");
         int priority = Integer.parseInt(uiSelectBox.getValue());
         pageNav.setPriority(priority);
         pageNav.setModifiable(true);
         pageNav.setOwnerId(uiOwnerId.getValue());
         pageNav.setOwnerType(uiOwnerType.getValue());
         //UIPortalApplication uiPortalApp = uiForm.getAncestorOfType(UIPortalApplication.class);     
         UIPortalApplication uiPortalApp = Util.getUIPortal().getAncestorOfType(UIPortalApplication.class);

         // ensure this navigation is not exist
         if (dataService.getPageNavigation(pageNav.getOwnerType(), pageNav.getOwnerId()) != null)
         {
            uiPortalApp.addMessage(new ApplicationMessage("UIPageNavigationForm.msg.existPageNavigation",
               new String[]{pageNav.getOwnerId()}));;
            return;
         }

         // create navigation for group
         dataService.create(pageNav);

         // close popup window, update popup window
         UIPopupWindow uiPopup = uiForm.getParent();
         uiPopup.setShow(false);
         UIComponent opener = uiPopup.getParent();
         pcontext.addUIComponentToUpdateByAjax(opener);

         UIWorkingWorkspace uiWorkingWS = uiPortalApp.getChild(UIWorkingWorkspace.class);
         uiWorkingWS.updatePortletsByName("GroupNavigationPortlet");
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

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.