Package org.exoplatform.portal.webui.workspace

Examples of org.exoplatform.portal.webui.workspace.UIPortalApplication.findFirstComponentOfType()


         {
            uiPageNodeSelector.selectPageNodeByUri(uri);
         }

         UIPortalApplication uiPortalApp = uiPageNodeSelector.getAncestorOfType(UIPortalApplication.class);
         UIWizard uiWizard = uiPortalApp.findFirstComponentOfType(UIWizard.class);
         event.getRequestContext().addUIComponentToUpdateByAjax(uiWizard);

         if (!event.getSource().isEditMode())
         {
            return;
View Full Code Here


            uiApp.addMessage(new ApplicationMessage("UIPortalApplication.msg.deletePageBody", new Object[]{},
               ApplicationMessage.WARNING));
            return;
         }

         UIPortalComposer portalComposer = uiApp.findFirstComponentOfType(UIPortalComposer.class);
         portalComposer.setEditted(true);

         UIPage uiPage = uiComponentTobeRemoved.getAncestorOfType(UIPage.class);
         if (uiPage != null && uiPage.getMaximizedUIPortlet() != null)
         {
View Full Code Here

         if (paramNewComponent != null)
            newComponent = Boolean.valueOf(paramNewComponent).booleanValue();

         UIPortalApplication uiApp = event.getSource().getAncestorOfType(UIPortalApplication.class);
         UIPortalComposer portalComposer = uiApp.findFirstComponentOfType(UIPortalComposer.class);

         if (newComponent)
         {
            portalComposer.updateWorkspaceComponent();
            pcontext.setFullRender(true);
View Full Code Here

               uiSource = uiContainer;
            }
            else
            {
               Application app = null;
               UIApplicationList appList = uiApp.findFirstComponentOfType(UIApplicationList.class);
               app = appList.getApplication(sourceId);
               ApplicationType applicationType = app.getType();

               //
               UIPortlet uiPortlet = uiTarget.createUIComponent(UIPortlet.class, null, null);
View Full Code Here

            uiToolPanel.setUIComponent(null);
            return;
         }

         UIPage uiPage = Util.toUIPage(node, uiToolPanel);
         UIPageBody uiPageBody = uiPortalApp.findFirstComponentOfType(UIPageBody.class);
         if (uiPageBody.getUIComponent() != null)
         {
            uiPageBody.setUIComponent(null);
         }
         uiToolPanel.setUIComponent(uiPage);
View Full Code Here

               UserPortalConfigService configService = uiForm.getApplicationComponent(UserPortalConfigService.class);
               dataService.save(portalConfig);
            }
            else
            {
               UIWorkingWorkspace uiWorkingWS = uiPortalApp.findFirstComponentOfType(UIWorkingWorkspace.class);
               UIEditInlineWorkspace uiEditWS = uiWorkingWS.getChild(UIEditInlineWorkspace.class);
               UIPortal editPortal = (UIPortal)uiEditWS.getUIComponent();
               uiForm.invokeSetBindingBean(editPortal);
            }
         }
View Full Code Here

            return;
         }

         //Switch portal application to edit mode
         uiPortalApp.setModeState(UIPortalApplication.APP_BLOCK_EDIT_MODE);
         UIWorkingWorkspace uiWorkingWS = uiPortalApp.findFirstComponentOfType(UIWorkingWorkspace.class);
         UIEditInlineWorkspace editInlineWS = uiWorkingWS.getChild(UIEditInlineWorkspace.class);
        
         //Clone a UIPage object, that is required for Abort action
         UIPage uiPage = editInlineWS.createUIComponent(UIPage.class, null, null);
         PortalDataMapper.toUIPage(uiPage, page);
View Full Code Here

        
         //Clone a UIPage object, that is required for Abort action
         UIPage uiPage = editInlineWS.createUIComponent(UIPage.class, null, null);
         PortalDataMapper.toUIPage(uiPage, page);
        
         UIPageBody uiPageBody = uiPortalApp.findFirstComponentOfType(UIPageBody.class);
         if (uiPageBody.getUIComponent() != null)
            uiPageBody.setUIComponent(null);

         if (Page.DESKTOP_PAGE.equals(page.getFactoryId()))
         {
View Full Code Here

            uiApp.setLocale(localeConfig.getLocale());
            uiApp.setOrientation(localeConfig.getOrientation());
            uiApp.localizeNavigations();

            Util.getPortalRequestContext().addUIComponentToUpdateByAjax(
               uiApp.findFirstComponentOfType(UIWorkingWorkspace.class));
            Util.getPortalRequestContext().setFullRender(true);
         }
        
         UIUserManagement userManagement = uiUserInfo.getParent();
         UIListUsers listUser = userManagement.getChild(UIListUsers.class);
View Full Code Here

                    // TODO: Raise Portlet Event instead
                    uiWorkingWS.updatePortletsByName("PortalNavigationPortlet");
                    uiWorkingWS.updatePortletsByName("UserToolbarSitePortlet");
                } else {
                    UIWorkingWorkspace uiWorkingWS = uiPortalApp.findFirstComponentOfType(UIWorkingWorkspace.class);
                    UIEditInlineWorkspace uiEditWS = uiWorkingWS.getChild(UIEditInlineWorkspace.class);
                    UIPortal editPortal = (UIPortal) uiEditWS.getUIComponent();
                    uiForm.invokeSetBindingBean(editPortal);
                }
            } else {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.