public void setCurrentTask(TaskNote tn) { if (currentTask != null) { currentTask.setCurrent(false); } currentTask = tn; currentTask.setCurrent(); }
public void taskChoised(TaskNote taskNote) { currentTaskView.setTask((taskNote == null ? null : taskNote.getTask())); if (currentTask != null) { currentTask.setCurrent(false); } currentTask = taskNote; if (currentTask != null) { currentTask.setCurrent(); } }