/**
  * Returns the tasks of a therapy
  *
  * @return goalTableItems in a <code>ArrayList</code><Object[]>
  */
 public ArrayList<Object[]> getTasksOfTherapy() {
   taskData.clear();
   for (TaskModel task : therapies.get(0).getTasks()) {
     Object[] taskTableContainer = new Object[2];
     taskTableContainer[0] = task.getTaskGoal();
     taskTableContainer[1] = task.getTaskDate();
     taskData.add(taskTableContainer);
   }
   return taskData;
 }
 public void clickDoneButton(Object itemId) {
   taskToChange = therapies.get(0).getTasks().get((Integer) itemId);
   if (changedTask == null) {
     changedTask = taskToChange;
   }
   if (taskToChange.getTaskState().equals("Solved")) {
     taskToChange = solvedController.clickDoneButton(changedTask, itemId);
   } else if (taskToChange.getTaskState().equals("ToImprove")) {
     taskToChange = toImproveController.clickDoneButton(changedTask, itemId);
   } else {
     taskToChange = notSolvedController.clickDoneButton(changedTask, itemId);
   }
   therapies.get(0).getTasks().set((Integer) itemId, taskToChange);
 }