com.vaadin.client.ui.calendar.schedule
Class SimpleDayCell

java.lang.Object
  extended by FlowPanel
      extended by com.vaadin.client.ui.FocusableFlowPanel
          extended by com.vaadin.client.ui.calendar.schedule.SimpleDayCell
All Implemented Interfaces:
Focusable

public class SimpleDayCell
extends FocusableFlowPanel

A class representing a single cell within the calendar in month-view

Since:
7.1
Author:
Vaadin Ltd.

Constructor Summary
SimpleDayCell(VCalendar calendar, int row, int cell)
           
 
Method Summary
 void addCalendarEvent(CalendarEvent e)
           
 void addEmphasisStyle()
           
 com.google.gwt.event.shared.HandlerRegistration addMouseMoveHandler(MouseMoveHandler handler)
           
protected  void cancelEventDrag(MonthEventLabel w)
           
 CalendarEvent getCalendarEvent(int i)
           
 int getCell()
           
 java.util.Date getDate()
           
 int getEventCount()
           
 CalendarEvent[] getEvents()
           
 int getHeigth()
           
 MonthGrid getMonthGrid()
           
 CalendarEvent getMoveEvent()
           
 int getRow()
           
 int getWidth()
           
protected  void onAttach()
           
protected  void onDetach()
           
 void onLoad()
           
 void onMouseDown(MouseDownEvent event)
           
 void onMouseMove(MouseMoveEvent event)
           
 void onMouseOver(MouseOverEvent event)
           
 void onMouseUp(MouseUpEvent event)
           
 void reDraw(boolean clear)
           
 void removeEmphasisStyle()
           
 boolean removeEvent(CalendarEvent targetEvent, boolean reDrawImmediately)
           
 void setDate(java.util.Date date)
           
 void setHeightPX(int px, boolean clear)
           
 void setMonthGrid(MonthGrid monthGrid)
           
 void setMonthNameVisible(boolean b)
           
 void setToday(boolean today)
           
 void startCalendarEventDrag(MouseDownEvent event, MonthEventLabel w)
           
 void updateDragPosition(MonthEventLabel w, int dayDiff, int weekDiff)
           
 void updateEvents(int slots, boolean clear)
           
 
Methods inherited from class com.vaadin.client.ui.FocusableFlowPanel
addBlurHandler, addFocusHandler, addKeyDownHandler, addKeyPressHandler, focus, setFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDayCell

public SimpleDayCell(VCalendar calendar,
                     int row,
                     int cell)
Method Detail

onLoad

public void onLoad()

setMonthGrid

public void setMonthGrid(MonthGrid monthGrid)

getMonthGrid

public MonthGrid getMonthGrid()

setDate

public void setDate(java.util.Date date)

getDate

public java.util.Date getDate()

reDraw

public void reDraw(boolean clear)

setHeightPX

public void setHeightPX(int px,
                        boolean clear)

updateEvents

public void updateEvents(int slots,
                         boolean clear)

addCalendarEvent

public void addCalendarEvent(CalendarEvent e)

setMonthNameVisible

public void setMonthNameVisible(boolean b)

addMouseMoveHandler

public com.google.gwt.event.shared.HandlerRegistration addMouseMoveHandler(MouseMoveHandler handler)

onAttach

protected void onAttach()

onDetach

protected void onDetach()

onMouseUp

public void onMouseUp(MouseUpEvent event)

onMouseDown

public void onMouseDown(MouseDownEvent event)

onMouseOver

public void onMouseOver(MouseOverEvent event)

onMouseMove

public void onMouseMove(MouseMoveEvent event)

startCalendarEventDrag

public void startCalendarEventDrag(MouseDownEvent event,
                                   MonthEventLabel w)

cancelEventDrag

protected void cancelEventDrag(MonthEventLabel w)

updateDragPosition

public void updateDragPosition(MonthEventLabel w,
                               int dayDiff,
                               int weekDiff)

getRow

public int getRow()

getCell

public int getCell()

getHeigth

public int getHeigth()

getWidth

public int getWidth()

setToday

public void setToday(boolean today)

removeEvent

public boolean removeEvent(CalendarEvent targetEvent,
                           boolean reDrawImmediately)

getCalendarEvent

public CalendarEvent getCalendarEvent(int i)

getEvents

public CalendarEvent[] getEvents()

getEventCount

public int getEventCount()

getMoveEvent

public CalendarEvent getMoveEvent()

addEmphasisStyle

public void addEmphasisStyle()

removeEmphasisStyle

public void removeEmphasisStyle()


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.