candy.util.calendar
Class CalendarEntry

java.lang.Object
  |
  +--candy.util.calendar.CalendarEntry

public class CalendarEntry
extends java.lang.Object

An entry in a calendar containing all relevant to this entry.

See Also:
CalendarView, Calendar

Field Summary
(package private)  java.util.Calendar date
          The date that this appointment begins
(package private)  java.lang.String[] entryTypes
           
(package private)  java.lang.String notes
          any notes made about the appointment
(package private)  Member scheduler
          A reference to the Member object who has scheduled it.
(package private)  int startHour
           
(package private)  int startMinute
           
(package private)  java.lang.String startTime
          The starting time of the appointment
(package private)  int typeIndex
           
 
Constructor Summary
CalendarEntry(java.util.Calendar cal, int type, java.lang.String note)
           
 
Method Summary
 java.lang.String getDateKey()
           
 int getDay()
           
 int getHour()
           
 int getMin()
           
 int getMonth()
           
 java.lang.String getNotes()
           
 Member getOwner()
           
 java.lang.String getStartTime()
           
 java.lang.String getType()
           
 int getYear()
           
 void update(java.util.Calendar cal, java.lang.String start)
          A Member wishes to update this entry.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entryTypes

java.lang.String[] entryTypes

typeIndex

int typeIndex

startHour

int startHour

startMinute

int startMinute

date

java.util.Calendar date
The date that this appointment begins

startTime

java.lang.String startTime
The starting time of the appointment

scheduler

Member scheduler
A reference to the Member object who has scheduled it.
Note that we are assuming a good-natured development team and this means that we are allowing anyone to change any previously made appointment

notes

java.lang.String notes
any notes made about the appointment
Constructor Detail

CalendarEntry

public CalendarEntry(java.util.Calendar cal,
                     int type,
                     java.lang.String note)
Method Detail

update

public void update(java.util.Calendar cal,
                   java.lang.String start)
A Member wishes to update this entry. This operation involves the invocation of a CalendarEntryUpdateDialog box to be launched displaying the current information and the ability to alter it
See Also:
CalendarEntryUpdateDialog

getOwner

public Member getOwner()

getNotes

public java.lang.String getNotes()

getStartTime

public java.lang.String getStartTime()

getType

public java.lang.String getType()

getHour

public int getHour()

getMin

public int getMin()

getYear

public int getYear()

getMonth

public int getMonth()

getDay

public int getDay()

getDateKey

public java.lang.String getDateKey()