Beispiel #1
0
 public void setAugeoPolicyForChildren(int anAugeoPolicy) {
   for (int i = 0; i < getChildCount(); i++) {
     Task theTask = (Task) getChildAt(i);
     theTask.setAugeoPolicy(anAugeoPolicy);
     theTask.setAugeoPolicyForChildren(anAugeoPolicy);
   }
 }
Beispiel #2
0
 public Vector getSortedTasks() {
   Vector theTasks = new Vector();
   for (int i = 0; i < getChildCount(); i++) {
     Task theTask = (Task) getChildAt(i);
     theTasks.add(theTask);
     theTasks.addAll(theTask.getSortedTasks());
   }
   Collections.sort(theTasks, new TaskComparator());
   return theTasks;
 }
Beispiel #3
0
  public ArrayList getTasks(long aStartTime, long anEndTime) {
    ArrayList thePeriods = getPeriods(aStartTime, anEndTime);
    ArrayList tasks = new ArrayList();
    Task theTask = null;
    for (int i = 0; i < thePeriods.size(); i++) {

      theTask = ((Period) thePeriods.get(i)).getTask();
      while (theTask != null) {
        if (!tasks.contains(theTask)) {
          tasks.add(theTask);
        }
        theTask = theTask.getParentTask();
      }
    }
    Collections.sort(tasks);
    return tasks;
  }