scheduler.view
Class CalCell

java.lang.Object
  extended by scheduler.view.CalCell

public class CalCell
extends java.lang.Object

CalCell represents each calendar cell in the calendar view CalCell contains a list of scheudleItem for the specific day during the specific time.

Author:
Sasiluk Ruangrongsorakai

Field Summary
protected  Time endT
          End time of the cell
protected  java.util.ArrayList<ScheduleItem> siList
          List of ScheduleItem for the specific time
protected  Time startT
          Start time of the cell
 
Constructor Summary
CalCell(Time startT, Time endT)
           
 
Method Summary
 void addScheduleItem(ScheduleItem si)
          Adding a ScheduleItem that matches the specific start time and end time
 Time getEndTime()
          Return the end time of the cell
 java.util.ArrayList<ScheduleItem> getScheduleItemList()
          Return a list of ScheduleItem that belongs to the CalCell
 Time getStartTime()
          Return the start time of the cell
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startT

protected Time startT
Start time of the cell


endT

protected Time endT
End time of the cell


siList

protected java.util.ArrayList<ScheduleItem> siList
List of ScheduleItem for the specific time

Constructor Detail

CalCell

CalCell(Time startT,
        Time endT)
Method Detail

addScheduleItem

public void addScheduleItem(ScheduleItem si)
Adding a ScheduleItem that matches the specific start time and end time

Parameters:
si - - the ScheduleItem to be added

getScheduleItemList

public java.util.ArrayList<ScheduleItem> getScheduleItemList()
Return a list of ScheduleItem that belongs to the CalCell

Returns:
list of ScheduleItem

getStartTime

public Time getStartTime()
Return the start time of the cell

Returns:
cell start time

getEndTime

public Time getEndTime()
Return the end time of the cell

Returns:
cell end time