Package org.exoplatform.portal.webui.portal

Examples of org.exoplatform.portal.webui.portal.UIPortal.findFirstComponentOfType()


         //If the node is removed successfully, then redirect to the node specified by tab on the left
         if (selectedNode != null)
         {
            // set maximizedUIComponent of UIPageBody is null if it is maximized portlet of removed page
            UIPortal uiPortal = Util.getUIPortal();
            UIPageBody uiPageBody = uiPortal.findFirstComponentOfType(UIPageBody.class);
            if (uiPageBody != null && uiPageBody.getMaximizedUIComponent() != null)
            {
               uiPageBody.setMaximizedUIComponent(null);
            }
View Full Code Here


            if (targetNode == null) {
                targetNode = userPortal.getDefaultPath(builder.build());
                if (targetNode == null) {
                    if (showedUIPortal != null) {
                        UIPageBody uiPageBody = showedUIPortal.findFirstComponentOfType(UIPageBody.class);
                        uiPageBody.setUIComponent(null);
                    }
                    return;
                }
            }
View Full Code Here

            if (targetNode == null) {
                targetNode = userPortal.getDefaultPath(builder.build());
                if (targetNode == null) {
                    if (showedUIPortal != null) {
                        UIPageBody uiPageBody = showedUIPortal.findFirstComponentOfType(UIPageBody.class);
                        uiPageBody.setUIComponent(null);
                    }
                    return;
                }
            }
View Full Code Here

            DataStorage dataStorage = uiPortalApp.getApplicationComponent(DataStorage.class);
            PortalConfig portalConfig = dataStorage.getPortalConfig(pcontext.getSiteType().getName(), pcontext.getSiteName());
            UIPortal transientPortal = uiWorkingWS.createUIComponent(UIPortal.class, null, null);
            PortalDataMapper.toUIPortal(transientPortal, portalConfig);
            UIPageBody uiPageBody = transientPortal.findFirstComponentOfType(UIPageBody.class);
            uiPageBody.setUIComponent(prepareUIPage(page, pcontext));

//            uiWorkingWS.setBackupUIPortal(currentPortal);
//            uiPortalApp.setDefaultEditMode(ComponentTab.APPLICATIONS, EditLevel.EDIT_PAGE);
View Full Code Here

      UIPortalApplication uiPortalApp = uiPortal.getAncestorOfType(UIPortalApplication.class);
      UIPage uiPage;
      if (uiPortal.isRendered())
      {
         uiPage = uiPortal.findFirstComponentOfType(UIPage.class);
      }
      else
      {
         UIPortalToolPanel uiPortalToolPanel = uiPortalApp.findFirstComponentOfType(UIPortalToolPanel.class);
         uiPage = uiPortalToolPanel.findFirstComponentOfType(UIPage.class);
View Full Code Here

   {
      public void execute(Event<UIPage> event) throws Exception
      {
         String uri = event.getRequestContext().getRequestParameter(OBJECTID);
         UIPortal uiPortal = Util.getUIPortal();
         UIPageBody uiPageBody = uiPortal.findFirstComponentOfType(UIPageBody.class);
         if (uiPageBody != null)
         {
            if (uiPageBody.getMaximizedUIComponent() != null)
            {
               UIPortlet currentPortlet = (UIPortlet)uiPageBody.getMaximizedUIComponent();
View Full Code Here

      UIWorkingWorkspace uiWorkingWS = uiPortalApp.getChildById(UIPortalApplication.UI_WORKING_WS_ID);
      uiWorkingWS.setRenderedChild(UIPortal.class);
      UIPortal uiPortal = uiWorkingWS.findFirstComponentOfType(UIPortal.class);

      UIContainer uiContainer = Util.findUIComponent(uiPortal, UIContainer.class, UIPage.class);
      UIPage uiPage = uiPortal.findFirstComponentOfType(UIPage.class);
      UIPortlet uiPortlet = Util.findUIComponent(uiPortal, UIPortlet.class, UIPage.class);

      String name = "";
      if (uiContainer != null && uiContainer.isShowEditControl())
         name = "'UIContainer'";
View Full Code Here

            // If the node is removed successfully, then redirect to the node specified by tab on the left
            if (selectedNode != null) {
                // set maximizedUIComponent of UIPageBody is null if it is maximized portlet of removed page
                UIPortal uiPortal = Util.getUIPortal();
                UIPageBody uiPageBody = uiPortal.findFirstComponentOfType(UIPageBody.class);
                if (uiPageBody != null && uiPageBody.getMaximizedUIComponent() != null) {
                    uiPageBody.setMaximizedUIComponent(null);
                }
                nextNode = selectedNode;
            }
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.