Package org.exoplatform.webui.core

Examples of org.exoplatform.webui.core.UIPopupWindow


            } catch (NavigationServiceException ex) {
                handleError(ex.getError(), uiNodeSelector);
                return;
            }

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

            uiNodeForm.setSelectedParent(node);
            UserNavigation edittedNavigation = uiNodeSelector.getEdittedNavigation();
            uiNodeForm.setContextPageNavigation(edittedNavigation);
            uiManagementPopup.setWindowSize(800, 500);
            event.getRequestContext().addUIComponentToUpdateByAjax(uiManagementPopup.getParent());
        }
View Full Code Here


    public UIGroupNavigationManagement() throws Exception {
        UIVirtualList virtualList = addChild(UIVirtualList.class, null, "GroupNavigationList");
        UIRepeater repeater = createUIComponent(UIRepeater.class, "UIGroupNavigationGrid", null);
        virtualList.setUIComponent(repeater);
        UIPopupWindow editNavigation = addChild(UIPopupWindow.class, null, null);
        editNavigation.setId(editNavigation.getId() + "-" + UUID.randomUUID().toString().replaceAll("-", ""));
    }
View Full Code Here

        protected void doEdit(UserNavigation nav, Event<UIGroupNavigationManagement> event) throws Exception {
            UserPortal userPortal = Util.getPortalRequestContext().getUserPortalConfig().getUserPortal();
            UIGroupNavigationManagement uicomp = event.getSource();
            SiteKey siteKey = nav.getKey();

            UIPopupWindow popUp = uicomp.getChild(UIPopupWindow.class);
            UINavigationManagement naviManager = popUp.createUIComponent(UINavigationManagement.class, null, null, popUp);
            uicomp.naviManager = naviManager;

            naviManager.setSiteKey(siteKey);

            UINavigationNodeSelector selector = naviManager.getChild(UINavigationNodeSelector.class);
            selector.setEdittedNavigation(nav);
            selector.setUserPortal(userPortal);
            selector.setScope(uicomp.getScope());
            selector.initTreeData();

            popUp.setUIComponent(naviManager);
            popUp.setWindowSize(400, 400);
            popUp.setShowMask(true);
            popUp.setShow(true);
        }
View Full Code Here

        protected void doEdit(UserNavigation navigation, Event<UIGroupNavigationManagement> event) throws Exception {
            UIGroupNavigationManagement uicomp = event.getSource();
            SiteKey siteKey = navigation.getKey();

            // open a add navigation popup
            UIPopupWindow popUp = uicomp.getChild(UIPopupWindow.class);
            UIPageNavigationForm pageNavigation = popUp.createUIComponent(UIPageNavigationForm.class, null, null, popUp);
            pageNavigation.setOwnerId(siteKey.getName());
            pageNavigation.setOwnerType(siteKey.getTypeName());
            pageNavigation.setPriority(String.valueOf(navigation.getPriority()));
            pageNavigation.addFormInput();
            pageNavigation.setUserNav(navigation);
            popUp.setUIComponent(pageNavigation);
            popUp.setWindowSize(600, 400);
            popUp.setShowMask(true);
            popUp.setShow(true);
        }
View Full Code Here

            UINavigationNodeSelector selector = navigationManager.getChild(UINavigationNodeSelector.class);
            TreeNode selectedParent = (TreeNode) uiPageNodeForm.getSelectedParent();
            selector.selectNode(selectedParent);

            UIPopupWindow uiNavigationPopup = uiGroupNavigation.getChild(UIPopupWindow.class);
            uiNavigationPopup.setUIComponent(navigationManager);
            uiNavigationPopup.setWindowSize(400, 400);
            uiNavigationPopup.setRendered(true);
            event.getRequestContext().addUIComponentToUpdateByAjax(uiNavigationPopup.getParent());

            TreeNode pageNode = uiPageNodeForm.getPageNode();
            if (pageNode != null) {
                selector.getUserNodeLabels().put(pageNode.getId(), pageNode.getI18nizedLabels());
            }
View Full Code Here

    }

    public static class CloseActionListener extends UIPopupWindow.CloseActionListener {
        public void execute(Event<UIPopupWindow> event) throws Exception {
            UIPopupWindow popWindow = event.getSource();
            popWindow.setUIComponent(null);

            UIGroupNavigationManagement grpMan = popWindow.getAncestorOfType(UIGroupNavigationManagement.class);
            grpMan.naviManager = null;

            super.execute(event);
        }
View Full Code Here

    // set navigationScope to GrandChildren for default value
    private Scope navigationScope = Scope.GRANDCHILDREN;

    public UISiteManagement() throws Exception {
        UIPopupWindow editNavigation = addChild(UIPopupWindow.class, null, null);
        editNavigation.setWindowSize(400, 400);
        editNavigation.setId(editNavigation.getId() + "-" + UUID.randomUUID().toString().replaceAll("-", ""));
    }
View Full Code Here

             * UserACL userACL = uicomp.getApplicationComponent(UserACL.class); if
             * (!userACL.hasEditPermission(edittedNavigation)) { uiApplication.addMessage(new
             * ApplicationMessage("UISiteManagement.msg.Invalid-editPermission", null));; return; }
             */

            UIPopupWindow popUp = uicomp.getChild(UIPopupWindow.class);
            UINavigationManagement naviManager = popUp.createUIComponent(UINavigationManagement.class, null, null, popUp);
            uicomp.naviManager = naviManager;

            naviManager.setSiteKey(SiteKey.portal(portalName));

            UserPortal userPortal = userPortalConfig.getUserPortal();
            UserNavigation edittedNavigation = userPortal.getNavigation(SiteKey.portal(portalName));

            UINavigationNodeSelector selector = naviManager.getChild(UINavigationNodeSelector.class);
            selector.setScope(uicomp.getScope());
            selector.setEdittedNavigation(edittedNavigation);
            selector.setUserPortal(userPortal);
            selector.initTreeData();
            popUp.setUIComponent(naviManager);
            popUp.setShowMask(true);
            popUp.setShow(true);
            popUp.setWindowSize(400, 400);
        }
View Full Code Here

            TreeNode selectedParent = (TreeNode) uiPageNodeForm.getSelectedParent();
            selector.setScope(uiSiteManagement.getScope());
            selector.selectNode(selectedParent);

            WebuiRequestContext context = event.getRequestContext();
            UIPopupWindow uiNavigationPopup = uiSiteManagement.getChild(UIPopupWindow.class);
            uiNavigationPopup.setUIComponent(navigationManager);
            uiNavigationPopup.setWindowSize(400, 400);
            context.addUIComponentToUpdateByAjax(uiNavigationPopup.getParent());

            TreeNode pageNode = uiPageNodeForm.getPageNode();
            if (pageNode != null) {
                selector.getUserNodeLabels().put(pageNode.getId(), pageNode.getI18nizedLabels());
            }
View Full Code Here

    }

    public static class CloseActionListener extends UIPopupWindow.CloseActionListener {
        public void execute(Event<UIPopupWindow> event) throws Exception {
            UIPopupWindow popWindow = event.getSource();
            popWindow.setUIComponent(null);

            UISiteManagement siteMan = popWindow.getAncestorOfType(UISiteManagement.class);
            siteMan.naviManager = 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.