com.bradrydzewski.gwt.calendar.client.dayview
Class AppointmentAdapter

java.lang.Object
  extended by com.bradrydzewski.gwt.calendar.client.dayview.AppointmentAdapter

public class AppointmentAdapter
extends Object

The Appointment Adapter is used to track the layout of an AppointmentInterface. It adds additional fields required to calculate layout that are used by the Layout Strategy classes. This adapter allows us to keep these fields outside of the main AppointmentInterface and implementations hiding the layout complexity from the user.

Author:
Brad Rydzewski

Constructor Summary
AppointmentAdapter(Appointment appointment)
           
 
Method Summary
 Appointment getAppointment()
           
 int getAppointmentEnd()
           
 int getAppointmentStart()
           
 float getCellPercentFill()
           
 float getCellPercentStart()
           
 int getCellSpan()
           
 int getCellStart()
           
 int getColumnSpan()
           
 int getColumnStart()
           
 float getHeight()
           
 List<TimeBlock> getIntersectingBlocks()
           
 float getLeft()
           
 float getTop()
           
 float getWidth()
           
 void setAppointmentEnd(int appointmentEnd)
           
 void setAppointmentStart(int appointmentStart)
           
 void setCellPercentFill(float cellPercentFill)
           
 void setCellPercentStart(float cellPercentStart)
           
 void setCellSpan(int cellSpan)
           
 void setCellStart(int cellStart)
           
 void setColumnSpan(int columnSpan)
           
 void setColumnStart(int columnStart)
           
 void setHeight(float height)
           
 void setIntersectingBlocks(List<TimeBlock> intersectingBlocks)
           
 void setLeft(float left)
           
 void setTop(float top)
           
 void setWidth(float width)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppointmentAdapter

public AppointmentAdapter(Appointment appointment)
Method Detail

getTop

public float getTop()

setTop

public void setTop(float top)

getLeft

public float getLeft()

setLeft

public void setLeft(float left)

getWidth

public float getWidth()

setWidth

public void setWidth(float width)

getHeight

public float getHeight()

setHeight

public void setHeight(float height)

getCellStart

public int getCellStart()

setCellStart

public void setCellStart(int cellStart)

getCellSpan

public int getCellSpan()

setCellSpan

public void setCellSpan(int cellSpan)

getColumnStart

public int getColumnStart()

setColumnStart

public void setColumnStart(int columnStart)

getColumnSpan

public int getColumnSpan()

setColumnSpan

public void setColumnSpan(int columnSpan)

getAppointmentStart

public int getAppointmentStart()

setAppointmentStart

public void setAppointmentStart(int appointmentStart)

getAppointmentEnd

public int getAppointmentEnd()

setAppointmentEnd

public void setAppointmentEnd(int appointmentEnd)

getIntersectingBlocks

public List<TimeBlock> getIntersectingBlocks()

setIntersectingBlocks

public void setIntersectingBlocks(List<TimeBlock> intersectingBlocks)

getAppointment

public Appointment getAppointment()

getCellPercentFill

public float getCellPercentFill()

setCellPercentFill

public void setCellPercentFill(float cellPercentFill)

getCellPercentStart

public float getCellPercentStart()

setCellPercentStart

public void setCellPercentStart(float cellPercentStart)


Copyright © 2012. All Rights Reserved.