Package org.exoplatform.portal.webui.page

Examples of org.exoplatform.portal.webui.page.UIPageNodeForm2


         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


               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

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

         // set owner type, owner
         uiNodeForm.setOwner(nav.getOwnerId());
         uiNodeForm.setOwnerType(nav.getOwnerType());

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

TOP

Related Classes of org.exoplatform.portal.webui.page.UIPageNodeForm2

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.