Package org.activiti.explorer.ui.custom

Examples of org.activiti.explorer.ui.custom.ToolbarPopupEntry


    });
    tasksEntry.setCount(tasksCount);
   
    // Queued
    List<Group> groups = identityService.createGroupQuery().groupMember(user.getId()).list();
    ToolbarPopupEntry queuedItem = addPopupEntry(ENTRY_QUEUED, (i18nManager.getMessage(Messages.TASK_MENU_QUEUED)));
    long queuedCount = 0;
    for (final Group group : groups) {
      if (group.getType().equals("assignment")) {
        long groupCount = new QueuedListQuery(group.getId()).size();
       
        queuedItem.addMenuItem(group.getName() + " (" + groupCount + ")", new ToolbarCommand() {
          public void toolBarItemSelected() {
            viewManager.showQueuedPage(group.getId());
          }
        });
       
        queuedCount += groupCount;
      }
    }
    queuedItem.setCount(queuedCount);
   
    // Involved
    long involvedCount = new InvolvedListQuery().size();
    ToolbarEntry involvedEntry = addToolbarEntry(ENTRY_INVOLVED, i18nManager.getMessage(Messages.TASK_MENU_INVOLVED), new ToolbarCommand() {
      public void toolBarItemSelected() {
View Full Code Here


    });
    tasksEntry.setCount(tasksCount);
   
    // Queued
    List<Group> groups = user.getGroups();
    ToolbarPopupEntry queuedItem = addPopupEntry(ENTRY_QUEUED, (i18nManager.getMessage(Messages.TASK_MENU_QUEUED)));
    long queuedCount = 0;
    for (final Group group : groups) {
      long groupCount = new QueuedListQuery(group.getId()).size();

      queuedItem.addMenuItem(group.getName() + " (" + groupCount + ")", new ToolbarCommand() {

        public void toolBarItemSelected() {
          viewManager.showQueuedPage(group.getId());
        }
      });

      queuedCount += groupCount;
    }
    queuedItem.setCount(queuedCount);
   
    // Involved
    long involvedCount = new InvolvedListQuery().size();
    ToolbarEntry involvedEntry = addToolbarEntry(ENTRY_INVOLVED, i18nManager.getMessage(Messages.TASK_MENU_INVOLVED), new ToolbarCommand() {
      public void toolBarItemSelected() {
View Full Code Here

      }
    });
  }

  protected void addDeploymentsToolbarEntry() {
    ToolbarPopupEntry deploymentEntry = addPopupEntry(ENTRY_DEPLOYMENTS, i18nManager.getMessage(Messages.MGMT_MENU_DEPLOYMENTS));
    deploymentEntry.addMenuItem(i18nManager.getMessage(Messages.MGMT_MENU_DEPLOYMENTS_SHOW_ALL), new ToolbarCommand() {
      public void toolBarItemSelected() {
        viewManager.showDeploymentPage();
      }
    });
    deploymentEntry.addMenuItem(i18nManager.getMessage(Messages.MGMT_MENU_DEPLOYMENTS_UPLOAD), new NewDeploymentListener());
  }
View Full Code Here

      }
    });
  }

  protected void addDeploymentsToolbarEntry() {
    ToolbarPopupEntry deploymentEntry = addPopupEntry(ENTRY_DEPLOYMENTS, i18nManager.getMessage(Messages.MGMT_MENU_DEPLOYMENTS));
    deploymentEntry.addMenuItem(i18nManager.getMessage(Messages.MGMT_MENU_DEPLOYMENTS_SHOW_ALL), new ToolbarCommand() {
      public void toolBarItemSelected() {
        viewManager.showDeploymentPage();
      }
    });
    deploymentEntry.addMenuItem(i18nManager.getMessage(Messages.MGMT_MENU_DEPLOYMENTS_UPLOAD), new NewDeploymentListener());
  }
View Full Code Here

TOP

Related Classes of org.activiti.explorer.ui.custom.ToolbarPopupEntry

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.