Package org.exoplatform.webui.core

Examples of org.exoplatform.webui.core.UIBreadcumbs


   @SuppressWarnings("unchecked")
   public void changeGroup(String groupId) throws Exception
   {
      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)
View Full Code Here


   static public class SelectPathActionListener extends EventListener<UIBreadcumbs>
   {
      public void execute(Event<UIBreadcumbs> event) throws Exception
      {
         UIBreadcumbs uiBreadcumbs = event.getSource();
         UIGroupSelector uiSelector = uiBreadcumbs.getParent();
         String objectId = event.getRequestContext().getRequestParameter(OBJECTID);
         uiBreadcumbs.setSelectPath(objectId);
         String selectGroupId = uiBreadcumbs.getSelectLocalPath().getId();
         uiSelector.changeGroup(selectGroupId);

         UIPopupWindow uiPopup = uiSelector.getParent();
         uiPopup.setShow(true);
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

   }

   public void changeGroup(String groupId) throws Exception
   {
      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)
View Full Code Here

   static public class SelectPathActionListener extends EventListener<UIBreadcumbs>
   {
      public void execute(Event<UIBreadcumbs> event) throws Exception
      {
         UIBreadcumbs uiBreadcumbs = event.getSource();
         UIGroupMembershipSelector uiSelector = uiBreadcumbs.getParent();
         String objectId = event.getRequestContext().getRequestParameter(OBJECTID);
         uiBreadcumbs.setSelectPath(objectId);
         String selectGroupId = uiBreadcumbs.getSelectLocalPath().getId();
         uiSelector.changeGroup(selectGroupId);

         UIPopupWindow uiPopup = uiSelector.getParent();
         uiPopup.setShow(true);
View Full Code Here

TOP

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

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.