employee = logic.getEmployee();
employee.addObserver(this);
tasks = new LinkedTaskList();
this.maxEntries = maxEntries;
ClientDBControl cdbc = logic.getDBControl();
List<Long> favTaskIDs = logic.getFavoriteTasks();
// Die Favoriten Task-Objekte holen und hinzufügen
for (long taskID : favTaskIDs) {
TaskWrapper favTask = new TaskWrapper(cdbc.getTask(employee, taskID));
tasks.add(favTask);
favTask.addObserver(this);
}
latestTasks = getTasks();