Package gri.tasks.gui

Examples of gri.tasks.gui.TaskInfo


  class UpdateInfoListener implements ObjectActionListener {

    public void actionPerformed(ObjectAction action) {
      String s = action.getCommand();
      if (s.equals(ObjectAction.SELECT)) {
        TaskInfo taskInfo = (TaskInfo)action.getObject();
        infoPanel.setTask(taskInfo);
      }
    }
View Full Code Here


  }
  public WorkflowInputModel(List taskInfoList) {
    this(taskInfoList, new ArrayList());

    for (int i=0; i<taskInfoList.size(); i++) {
      TaskInfo taskInfo = (TaskInfo)taskInfoList.get(i);
      String taskId = taskInfo.getTaskId();
      String stubId = String.valueOf(i);
      taskStubs.add(new TaskStub(stubId, taskId));
    }
  }
View Full Code Here

    public TaskInfo getTaskInfo(TaskStub taskStub) {
      return (TaskInfo)taskInfoMap.get(taskStub.getId());
    }
       
    protected Task createTask(TaskStub taskStub) throws Exception {
      TaskInfo taskInfo = getTaskInfo(taskStub);
      if (taskInfo == null)
        throw new Exception("TaskInfo not available for TaskStub: " + taskStub.getId());
     
      return taskInfo.createTask();
    }
View Full Code Here

  }

  protected void notifyTaskAction(ObjectAction action) {
    String cmd = action.getCommand();
    if (cmd.equals(ObjectAction.SELECT)) {
      TaskInfo task = (TaskInfo)action.getObject();
      Iterator groups = taskIconGroups.values().iterator();
      TaskIconGroup group;
      while (groups.hasNext()) {
        group = (TaskIconGroup)groups.next();
        if (!group.hasTask(task))
View Full Code Here

    }

    public void actionPerformed(ObjectAction action) {
      String cmd = action.getCommand();
      if (cmd.equals(ObjectAction.OPEN)) {
        TaskInfo task = (TaskInfo)action.getObject();
        buttons.addTask(task);
      }
    }
View Full Code Here

  }
  public boolean hasTask(TaskInfo task) {
    Component [] comps = pnlGroup.getComponents();
    for (int i=0; i<comps.length; i++) {
      if (comps[i] instanceof TaskIcon) {
        TaskInfo testInfo = ((TaskIcon)comps[i]).getTask();
        if (testInfo.equals(task))
          return true;
      }
    }
    return false;
  }
View Full Code Here

  public void removeTask(TaskInfo task) {
    Component [] comps = pnlGroup.getComponents();
    for (int i=0; i<comps.length; i++) {
      if (comps[i] instanceof TaskIcon) {

        TaskInfo testInfo = ((TaskIcon)comps[i]).getTask();
        if (testInfo != null && testInfo.equals(task)) {
          pnlGroup.remove(comps[i]);
          break;
        }

      }
View Full Code Here

   */
  public void setTaskList(List taskInfoList) {
    taskListPanel.removeAllTasks();
    inputPanels.removeAll();

    TaskInfo taskInfo;
    for (int i=0; i<taskInfoList.size(); i++) {
      taskInfo = (TaskInfo)taskInfoList.get(i);

      ParameterDef [] params = taskInfo.getTaskDefinition().getInputsArray();
      ParameterPanel paramPanel = new ParameterPanel(params, widgetFactory);

      taskListPanel.addTask(taskInfo);
      inputPanels.add(new InputPanel(paramPanel));

View Full Code Here

  public WorkflowInputModel getWorkflow() {
    List taskInfoList = taskListPanel.getTaskList();
   
    List taskStubs = new ArrayList(taskInfoList.size());
    for (int i=0; i<taskInfoList.size(); i++) {
      TaskInfo taskInfo = (TaskInfo)taskInfoList.get(i);

      String stubId = String.valueOf(i);
      String taskId = taskInfo.getTaskId();

      TaskStub stub = new TaskStub(stubId, taskId);
      stub.setInputs(inputPanels.getInputs(i));

      taskStubs.add(stub);
View Full Code Here

    public void actionPerformed(ObjectAction action) {

      String s = action.getCommand();

      if (s.equals(ObjectAction.OPEN)) {
        TaskInfo taskInfo = (TaskInfo)action.getObject();

        TaskExecutionPanel pnl = new TaskExecutionPanel(taskInfo);
        if (unmanagedJobs != null)
          pnl.setUnmanagedJobList(unmanagedJobs);
View Full Code Here

TOP

Related Classes of gri.tasks.gui.TaskInfo

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.