caltool.schedule
Class Task

java.lang.Object
  extended by java.util.Observable
      extended by mvp.Model
          extended by caltool.schedule.ScheduledItem
              extended by caltool.schedule.Task
All Implemented Interfaces:
java.io.Serializable

public class Task
extends ScheduledItem

Like an Appointment, a Task adds a number of components to a generic ScheduledItem. A Task differs from an Appointment as follows: (1) Appointments have Duration and Location, Tasks do not. (2) For Appointments, the priority is either 'Must' or 'Optional'; for Tasks, priority is a positive integer indicating the relative priority of a task compared to other tasks. (3) Tasks have a CompletedFlag and CompletionDate components; Appointments do not.

See Also:
Serialized Form

Field Summary
protected  boolean completedFlag
          CompletedFlag is true if a Task has been completed, false if not.
protected  Date completionDate
          CompletionDate is date on which as task is completed.
protected  java.lang.String details
          Free-form text describing any specific appointment details
protected  Time dueTime
          Due time of the task
protected  ItemKey itemKey
          The uniqe key for storing this in the UserCalendar items list
protected  int priority
          Defines the relative priority of this task compared to others
protected  RecurringInfo recurringInfo
          Defines if and how an task recurs
protected  RemindInfo remindInfo
          Indicates if and how user is reminded
protected  Security security
          Indicates who can see that the task is scheduled
 
Fields inherited from class caltool.schedule.ScheduledItem
category, endDate, startOrDueDate, title
 
Fields inherited from class mvp.Model
view
 
Constructor Summary
Task()
          Construct an empty task.
Task(java.lang.String title, Date startOrDueDate, Date endDate, Category category, Time dueTime, RecurringInfo recurringInfo, Security security, int priority, RemindInfo remindInfo, java.lang.String details, boolean completedFlag, Date completionDate)
          Construct a task with the given field values.
 
Method Summary
 ItemKey getKey()
          Return the unique key for this, consisting of date, time, title, and priority.
 
Methods inherited from class caltool.schedule.ScheduledItem
getCategory, getDate, getEndDate, getTitle
 
Methods inherited from class mvp.Model
dump, exit, getView, setView
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dueTime

protected Time dueTime
Due time of the task


recurringInfo

protected RecurringInfo recurringInfo
Defines if and how an task recurs


security

protected Security security
Indicates who can see that the task is scheduled


priority

protected int priority
Defines the relative priority of this task compared to others


remindInfo

protected RemindInfo remindInfo
Indicates if and how user is reminded


details

protected java.lang.String details
Free-form text describing any specific appointment details


completedFlag

protected boolean completedFlag
CompletedFlag is true if a Task has been completed, false if not. The system does not enforce any specific constraints on the setting of a task's CompletedFlag. That is, the user may set or clear it at will. Hence the meaning of the CompletedFlag is up to user interpretation, particularly for recurring tasks.


completionDate

protected Date completionDate
CompletionDate is date on which as task is completed. The system does not enforce any specific constraints on the setting of a task's CompletionDate (other than it being a legal Date value). The meaning of the CompletionDate value is up to user interpretation, particularly for recurring tasks.


itemKey

protected ItemKey itemKey
The uniqe key for storing this in the UserCalendar items list

Constructor Detail

Task

public Task()
Construct an empty task.


Task

public Task(java.lang.String title,
            Date startOrDueDate,
            Date endDate,
            Category category,
            Time dueTime,
            RecurringInfo recurringInfo,
            Security security,
            int priority,
            RemindInfo remindInfo,
            java.lang.String details,
            boolean completedFlag,
            Date completionDate)
Construct a task with the given field values. Generate and store the unique key for this task.

Method Detail

getKey

public ItemKey getKey()
Return the unique key for this, consisting of date, time, title, and priority. Duration is unsed.

Specified by:
getKey in class ScheduledItem