|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Observable
mvp.Model
caltool.schedule.ScheduledItem
caltool.schedule.Task
public class Task
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.
| 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 |
|---|
protected Time dueTime
protected RecurringInfo recurringInfo
protected Security security
protected int priority
protected RemindInfo remindInfo
protected java.lang.String details
protected boolean completedFlag
protected Date completionDate
protected ItemKey itemKey
| Constructor Detail |
|---|
public 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)
| Method Detail |
|---|
public ItemKey getKey()
getKey in class ScheduledItem
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||