Package pl.net.bluesoft.rnd.processtool.model.nonpersistent

Examples of pl.net.bluesoft.rnd.processtool.model.nonpersistent.ProcessQueue


      @Override
      public void buttonClick(ClickEvent event) {
        if (table.getValue() == null)
          return;
       
        ProcessQueue pq = (ProcessQueue)table.getValue();
        if (pq.getUserAdded() == null || pq.getUserAdded() == false) {
          getWindow().showNotification(getMessage("queues.remove.forbidden"));
          return;
        }
       
        final Collection<ProcessQueueConfig> queues = new ArrayList<ProcessQueueConfig>();
        ProcessQueueConfig config = new ProcessQueueConfig();
        config.setName(pq.getName());
        queues.add(config);
       
        withErrorHandling(getApplication(), new Runnable() {

          @Override
View Full Code Here


    });

        table.addGeneratedColumn("translation", new ColumnGenerator() {
            @Override
            public Object generateCell(Table source, Object itemId, Object columnId) {
                ProcessQueue queue = (ProcessQueue) itemId;
                String translation = getMessage(queue.getDescription());
                return translation != null ? translation : "";
            }
        });
   
    table.setVisibleColumns(new Object[] { "description", "translation", "processCount", "name", "browsable", "userAdded" });
View Full Code Here

    viewController.addView(new ComponentPaneRenderer<QueueListPane>(new QueueListPane(this))
    {
      @Override
      public Component render(Map<String,?> viewData)
      {
        ProcessQueue q = (ProcessQueue)viewData.get("queue");
        ProcessInstanceFilter filter = (ProcessInstanceFilter)viewData.get("filter");
        pane.setFilter(filter);
        pane.setQueue(q);
        leftPanelTrigger.show();
        return pane.init();
      }
    });

    viewController.addView(new ComponentPaneRenderer<OtherUserQueueListPane>(new OtherUserQueueListPane(this))
    {
      @Override
      public Component render(Map<String,?> viewData)
      {
        ProcessQueue queue = (ProcessQueue)viewData.get("queue");
        UserData user = (UserData)viewData.get("user");
        ProcessInstanceFilter filter = (ProcessInstanceFilter)viewData.get("filter");
        pane.setFilter(filter);
        pane.setUserData(user);
        pane.setQueue(queue);
View Full Code Here

                }
                return null;
            }

            ProcessQueue transform(ProcessQueueConfig x, boolean browsable) {
                ProcessQueue pq = new ProcessQueue();
                pq.setBrowsable(browsable);
                pq.setName(x.getName());
                pq.setDescription(x.getDescription());
                pq.setProcessCount(0);
                pq.setUserAdded(x.getUserAdded());
                return pq;
            }
        }.go();
    }
View Full Code Here

TOP

Related Classes of pl.net.bluesoft.rnd.processtool.model.nonpersistent.ProcessQueue

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.