Package org.exoplatform.webui.core

Examples of org.exoplatform.webui.core.UITree


   @SuppressWarnings("unchecked")
   public UIGroupSelector() throws Exception
   {
      UIBreadcumbs uiBreadcumbs = addChild(UIBreadcumbs.class, "BreadcumbGroupSelector", "BreadcumbGroupSelector");
      UITree tree = addChild(UITree.class, "UITreeGroupSelector", "TreeGroupSelector");
      OrganizationService service = getApplicationComponent(OrganizationService.class);
      Collection<?> sibblingsGroup = service.getGroupHandler().findGroups(null);

      tree.setSibbling((List)sibblingsGroup);
      tree.setIcon("GroupAdminIcon");
      tree.setSelectedIcon("PortalIcon");
      tree.setBeanIdField("id");
      //tree.setBeanLabelField("groupName");
      tree.setBeanLabelField("label");
      uiBreadcumbs.setBreadcumbsStyle("UIExplorerHistoryPath");
   }
View Full Code Here


   {
      OrganizationService service = getApplicationComponent(OrganizationService.class);
      UIBreadcumbs uiBreadcumb = getChild(UIBreadcumbs.class);
      uiBreadcumb.setPath(getPath(null, groupId));

      UITree tree = getChild(UITree.class);
      Collection<?> sibblingGroup;

      if (groupId == null)
      {
         sibblingGroup = service.getGroupHandler().findGroups(null);
         tree.setSibbling((List)sibblingGroup);
         tree.setChildren(null);
         tree.setSelected(null);
         selectGroup_ = null;
         return;
      }

      selectGroup_ = service.getGroupHandler().findGroupById(groupId);
      String parentGroupId = null;
      if (selectGroup_ != null)
         parentGroupId = selectGroup_.getParentId();
      Group parentGroup = null;
      if (parentGroupId != null)
         parentGroup = service.getGroupHandler().findGroupById(parentGroupId);

      Collection childrenGroup = service.getGroupHandler().findGroups(selectGroup_);
      sibblingGroup = service.getGroupHandler().findGroups(parentGroup);

      tree.setSibbling((List)sibblingGroup);
      tree.setChildren((List)childrenGroup);
      tree.setSelected(selectGroup_);
      tree.setParentSelected(parentGroup);
   }
View Full Code Here

   private List<String> listMemberhip;

   public UIGroupMembershipSelector() throws Exception
   {
      UIBreadcumbs uiBreadcumbs = addChild(UIBreadcumbs.class, "BreadcumbGroupSelector", "BreadcumbGroupSelector");
      UITree tree = addChild(UITree.class, "UITreeGroupSelector", "TreeGroupSelector");
      OrganizationService service = getApplicationComponent(OrganizationService.class);
      Collection<?> sibblingsGroup = service.getGroupHandler().findGroups(null);

      Collection<?> collection = service.getMembershipTypeHandler().findMembershipTypes();
      listMemberhip = new ArrayList<String>(5);
      for (Object obj : collection)
      {
         listMemberhip.add(((MembershipType)obj).getName());
      }
      listMemberhip.add("*");

      tree.setSibbling((List)sibblingsGroup);
      tree.setIcon("GroupAdminIcon");
      tree.setSelectedIcon("PortalIcon");
      tree.setBeanIdField("id");
      //tree.setBeanLabelField("groupName");
      tree.setBeanLabelField("label");
      uiBreadcumbs.setBreadcumbsStyle("UIExplorerHistoryPath");
   }
View Full Code Here

   @Override
   public void processRender(WebuiRequestContext context) throws Exception
   {
      OrganizationService service = getApplicationComponent(OrganizationService.class);
      Collection<?> sibblingsGroup = service.getGroupHandler().findGroups(null);
      UITree tree = getChild(UITree.class);
      if (tree != null)
         tree.setSibbling((List)sibblingsGroup);

      Collection<?> collection = service.getMembershipTypeHandler().findMembershipTypes();
      listMemberhip = new ArrayList<String>(5);
      for (Object obj : collection)
      {
View Full Code Here

   {
      OrganizationService service = getApplicationComponent(OrganizationService.class);
      UIBreadcumbs uiBreadcumb = getChild(UIBreadcumbs.class);
      uiBreadcumb.setPath(getPath(null, groupId));

      UITree tree = getChild(UITree.class);
      Collection<?> sibblingGroup;

      if (groupId == null)
      {
         sibblingGroup = service.getGroupHandler().findGroups(null);
         tree.setSibbling((List)sibblingGroup);
         tree.setChildren(null);
         tree.setSelected(null);
         selectGroup_ = null;
         return;
      }

      selectGroup_ = service.getGroupHandler().findGroupById(groupId);
      String parentGroupId = null;
      if (selectGroup_ != null)
      {
         parentGroupId = selectGroup_.getParentId();
      }
      Group parentGroup = null;
      if (parentGroupId != null)
      {
         parentGroup = service.getGroupHandler().findGroupById(parentGroupId);
      }

      Collection childrenGroup = service.getGroupHandler().findGroups(selectGroup_);
      sibblingGroup = service.getGroupHandler().findGroups(parentGroup);

      tree.setSibbling((List)sibblingGroup);
      tree.setChildren((List)childrenGroup);
      tree.setSelected(selectGroup_);
      tree.setParentSelected(parentGroup);
   }
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.