Package org.exoplatform.webui.core

Examples of org.exoplatform.webui.core.UITree


      if (pageNav == null || uri == null)
      {
         return null;
      }
      List<PageNode> pageNodes = pageNav.getNodes();
      UITree uiTree = getChild(UITree.class);
      for (PageNode ele : pageNodes)
      {
         PageNode returnPageNode = searchPageNodeByUri(ele, uri, uiTree);
         if (returnPageNode == null)
         {
            continue;
         }
         if (uiTree.getSibbling() == null)
         {
            uiTree.setSibbling(pageNodes);
         }
         return returnPageNode;
      }
      return null;
   }
View Full Code Here


               selectedNode.getPageNavigation().getNodes().remove(selectedNode.getNode());
            }
         }
         event.getRequestContext().addUIComponentToUpdateByAjax(uiNodeSelector);
         uiNodeSelector.setCopyNode(null);
         UITree uitree = uiNodeSelector.getChild(UITree.class);
         UIRightClickPopupMenu popup = uitree.getUIRightClickPopupMenu();
         popup.setActions(new String[]{"AddNode", "EditPageNode", "EditSelectedNode", "CopyNode", "CutNode",
            "CloneNode", "DeleteNode", "MoveUp", "MoveDown"});

         UserPortalConfigService service = uiPopupMenu.getApplicationComponent(UserPortalConfigService.class);
         if (targetNode == null)
View Full Code Here

      if (pageNav == null || uri == null)
      {
         return null;
      }
      List<PageNode> pageNodes = pageNav.getNodes();
      UITree uiTree = getChild(UITree.class);
      for (PageNode ele : pageNodes)
      {
         PageNode returnPageNode = searchPageNodeByUri(ele, uri, uiTree);
         if (returnPageNode == null)
         {
            continue;
         }
         if (uiTree.getSibbling() == null)
         {
            uiTree.setSibbling(pageNodes);
         }
         return returnPageNode;
      }
      return null;
   }
View Full Code Here

   {
      UIRightClickPopupMenu rightClickPopup =
         addChild(UIRightClickPopupMenu.class, "UINavigationNodeSelectorPopupMenu", null).setRendered(true);
      rightClickPopup.setActions(new String[]{"AddNode", "PasteNode"});

      UITree uiTree = addChild(UITree.class, null, "TreeNodeSelector");
      uiTree.setIcon("DefaultPageIcon");
      uiTree.setSelectedIcon("DefaultPageIcon");
      uiTree.setBeanIdField("uri");
      uiTree.setBeanLabelField("resolvedLabel");
      uiTree.setBeanIconField("icon");

      UIRightClickPopupMenu uiPopupMenu =
         createUIComponent(UIRightClickPopupMenu.class, "NavigationNodePopupMenu", null);
      uiPopupMenu.setActions(new String[]{"AddNode", "EditPageNode", "EditSelectedNode", "CopyNode", "CloneNode",
         "CutNode", "DeleteNode", "MoveUp", "MoveDown"});
      uiTree.setUIRightClickPopupMenu(uiPopupMenu);
   }
View Full Code Here

   }

   public void loadView(Event<? extends UIComponent> event) throws Exception
   {
      UINavigationNodeSelector uiNodeSelector = getChild(UINavigationNodeSelector.class);
      UITree uiTree = uiNodeSelector.getChild(UITree.class);
      uiTree.createEvent("ChangeNode", event.getExecutionPhase(), event.getRequestContext()).broadcast();
   }
View Full Code Here

      {
         String uri = event.getRequestContext().getRequestParameter(OBJECTID);
         UIWizardPageSetInfo uiForm = event.getSource();

         UIPageNodeSelector uiPageNodeSelector = event.getSource().getChild(UIPageNodeSelector.class);
         UITree tree = uiPageNodeSelector.getChild(UITree.class);

         if (tree.getParentSelected() == null && (uri == null || uri.length() < 1))
         {
            uiPageNodeSelector.selectNavigation(uiPageNodeSelector.getSelectedNavigation());
         }
         else
         {
View Full Code Here

               selectedNode.getPageNavigation().getNodes().remove(selectedNode.getNode());
            }
         }
         event.getRequestContext().addUIComponentToUpdateByAjax(uiPortalNodeSelector);
         uiPortalNodeSelector.setCopyNode(null);
         UITree uitree = uiPortalNodeSelector.getChild(UITree.class);
         UIRightClickPopupMenu popup = uitree.getUIRightClickPopupMenu();
         popup.setActions(new String[]{"AddNode", "EditPageNode", "EditSelectedNode", "CopyNode", "CutNode",
            "CloneNode", "DeleteNode", "MoveUp", "MoveDown"});

         UserPortalConfigService service = uiPopupMenu.getApplicationComponent(UserPortalConfigService.class);
         if (targetNode == null)
View Full Code Here

   private SelectedNode copyNode;

   public UIPageNodeSelector() throws Exception
   {
      UITree uiTree = addChild(UITree.class, null, "TreePageSelector");
      uiTree.setIcon("DefaultPageIcon");
      uiTree.setSelectedIcon("DefaultPageIcon");
      uiTree.setBeanIdField("uri");
      uiTree.setBeanLabelField("resolvedLabel");
      uiTree.setBeanIconField("icon");

      loadNavigations();
   }
View Full Code Here

   public void selectNavigation(PageNavigation pageNav)
   {
      selectedNavigation = pageNav;
      selectedNode = new SelectedNode(pageNav, null, null);
      selectPageNodeByUri(null);
      UITree uiTree = getChild(UITree.class);
      uiTree.setSibbling(pageNav.getNodes());
   }
View Full Code Here

   {
      if (selectedNode == null || (selectedNavigation.getId() != selectedNode.getPageNavigation().getId()))
      {
         return;
      }
      UITree tree = getChild(UITree.class);
      List<?> sibbling = tree.getSibbling();
      tree.setSibbling(null);
      tree.setParentSelected(null);
      selectedNode.setNode(searchPageNodeByUri(selectedNode.getPageNavigation(), uri));
      if (selectedNode.getNode() != null)
      {
         tree.setSelected(selectedNode.getNode());
         tree.setChildren(selectedNode.getNode().getChildren());
         return;
      }
      tree.setSelected(null);
      tree.setChildren(null);
      tree.setSibbling(sibbling);
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.webui.core.UITree

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.