taskRowMap.put(id, this);
}
private void hookEventListeners() {
// This is what happens when we click on the task label
DomUtils.addEventListener("click", titleElem, new EventListener() {
public void onBrowserEvent(Event event) {
controller.loadTask(data);
controller.goToTaskDetails();
}
});
// This is what happens when we click the checkbox
DomUtils.addEventListener("click", checkMark, new EventListener() {
public void onBrowserEvent(Event event) {
if (data.isFinished()) {
data.setFinished(false);
completedTasks.remove(TaskRow.this);