org.sakaiproject.component.legacy.calendar
Class BaseCalendarService.LayoutTableCell

java.lang.Object
  extended byorg.sakaiproject.component.legacy.calendar.BaseCalendarService.LayoutTableCell
Enclosing class:
BaseCalendarService

protected class BaseCalendarService.LayoutTableCell
extends Object

This is a single cell in a layout table (an instance of SingleDayLayoutTable).


Field Summary
protected  CalendarEvent calendarEvent
           
protected  int firstCellColumn
           
protected  int firstCellRow
           
protected  boolean isFirstCell
           
protected  int numCellsInEvent
           
protected  int thisCellColumn
           
protected  int thisCellRow
           
 
Constructor Summary
protected BaseCalendarService.LayoutTableCell()
           
 
Method Summary
 CalendarEvent getCalendarEvent()
          Gets the calendar event associated with this cell.
 int getFirstCellColumn()
          Gets the first column associated with this cell.
 int getFirstCellRow()
          Gets the first row associated with this cell.
 int getNumCellsInEvent()
          Get the number of cells in this event.
 int getThisCellColumn()
          Gets the column associated with this particular cell.
 int getThisCellRow()
          Gets the row associated with this cell.
 boolean isContinuationCell()
          Returns true if this cell is a continuation of an event and not the first cell in the event.
 boolean isEmptyCell()
          Returns true if this cell is not associated with any events.
 boolean isFirstCell()
          Returns true if this is the first cell in a column of cells associated with an event.
 void setCalendarEvent(CalendarEvent event)
          Set the calendar event associated with this cell.
 void setFirstCell(boolean b)
          Set flag indicating that this is the first cell in column of cells associated with an event.
 void setFirstCellColumn(int i)
          Sets a value in this cell to point to the very first cell in the column of cells associated with this event.
 void setFirstCellRow(int i)
          Sets a value in this cell to point to the very first cell in the column of cells associated with this event.
 void setNumCellsInEvent(int i)
          Gets the number of cells (if any) in the group of cells associated with this cell by event.
 void setThisCellColumn(int i)
          Sets the actual column index for this cell.
 void setThisCellRow(int i)
          Sets the actual row index for this cell.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

calendarEvent

protected CalendarEvent calendarEvent

firstCellColumn

protected int firstCellColumn

firstCellRow

protected int firstCellRow

isFirstCell

protected boolean isFirstCell

numCellsInEvent

protected int numCellsInEvent

thisCellColumn

protected int thisCellColumn

thisCellRow

protected int thisCellRow
Constructor Detail

BaseCalendarService.LayoutTableCell

protected BaseCalendarService.LayoutTableCell()
Method Detail

getCalendarEvent

public CalendarEvent getCalendarEvent()
Gets the calendar event associated with this cell.


getFirstCellColumn

public int getFirstCellColumn()
Gets the first column associated with this cell.


getFirstCellRow

public int getFirstCellRow()
Gets the first row associated with this cell.


getNumCellsInEvent

public int getNumCellsInEvent()
Get the number of cells in this event.


getThisCellColumn

public int getThisCellColumn()
Gets the column associated with this particular cell.


getThisCellRow

public int getThisCellRow()
Gets the row associated with this cell.


isContinuationCell

public boolean isContinuationCell()
Returns true if this cell is a continuation of an event and not the first cell in the event.


isEmptyCell

public boolean isEmptyCell()
Returns true if this cell is not associated with any events.


isFirstCell

public boolean isFirstCell()
Returns true if this is the first cell in a column of cells associated with an event.


setCalendarEvent

public void setCalendarEvent(CalendarEvent event)
Set the calendar event associated with this cell.


setFirstCell

public void setFirstCell(boolean b)
Set flag indicating that this is the first cell in column of cells associated with an event.


setFirstCellColumn

public void setFirstCellColumn(int i)
Sets a value in this cell to point to the very first cell in the column of cells associated with this event.


setFirstCellRow

public void setFirstCellRow(int i)
Sets a value in this cell to point to the very first cell in the column of cells associated with this event.


setNumCellsInEvent

public void setNumCellsInEvent(int i)
Gets the number of cells (if any) in the group of cells associated with this cell by event.


setThisCellColumn

public void setThisCellColumn(int i)
Sets the actual column index for this cell.


setThisCellRow

public void setThisCellRow(int i)
Sets the actual row index for this cell.