net.sf.nachocalendar.tasks
Class TaskDataModel
DefaultDataModelnet.sf.nachocalendar.tasks.TaskDataModel
public class TaskDataModel
extends DefaultDataModel
Implementation of the interface DataModel, created to manage
tasks.
void | addTask(Task task)- Adds a new Task to the model.
|
Collection | getTasks(Date date)- Returns a Collection with all the tasks related to a provided Date.
|
void | removeTask(Task task)- Removes a task from the model.
|
TaskDataModel
public TaskDataModel()
Creates a new instance of TaskDataModel.
addTask
public void addTask(Task task)
Adds a new Task to the model.
task - the task to be added
getTasks
public Collection getTasks(Date date)
Returns a Collection with all the tasks related to a provided Date.
date - the Date requested
- Collection with values or null
removeTask
public void removeTask(Task task)
Removes a task from the model.
task - task to be removed