Package gri.tasks.managers

Examples of gri.tasks.managers.TaskDescription


  /**
   * Adds the given task to the display widget.
   */
  public void addTask(JobManager jobManager, String taskId) {
    TaskDescription desc = jobManager.getTaskDescription(taskId);
    String displayName = desc.getName();

    TaskInfo info = new TaskInfo(jobManager, taskId, desc);
    addOption(new Option(displayName, info));
  }
View Full Code Here


  /**
   * Determines what group the given task should be in
   */
  protected String getGroup(TaskInfo info) {
    TaskDescription desc = info.getTaskDescription();

    String groupName = null;
    if (groupBy.equals(GROUP_BY_GROUP)) {
      if (desc instanceof ExtendedTaskDescription)
        groupName = ((ExtendedTaskDescription)desc).getGroup();
View Full Code Here

             .writeArray(taskList, elem);
       
        return xmlUtil.writeXML(elem);
    }
    public String getTaskDescription(String taskId) throws IOException {
        TaskDescription description = taskManager.getTaskDescription(taskId);
       
        Element elem = new Element("description");
        serializers.getTaskDescriptionSerializer()
                   .write(description, elem);
        return xmlUtil.writeXML(elem);
View Full Code Here

        //middle panel (title and status bar):
        pnlMain = new JPanel();
        pnlMain.setLayout(new BoxLayout(pnlMain, BoxLayout.Y_AXIS));
       
        //job name:
        TaskDescription taskDesc = jobEntry.getTaskDescription();
        String jobName = taskDesc == null ?
            "Unnamed task" : taskDesc.getName();
              
        lblJobName = new JLabel("<html><b>Job:</b> " + jobName + "</html>");
        lblJobName.setToolTipText("Job ID: " + jobEntry.getJobId());
        AppStyles.applyStyle(lblJobName, ".job-status label.jobName");
       
View Full Code Here

TOP

Related Classes of gri.tasks.managers.TaskDescription

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.