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

java.lang.Object
  extended by ComplexPanel
      extended by com.vaadin.client.ui.calendar.schedule.FocusableComplexPanel
          extended by com.vaadin.client.ui.calendar.schedule.DateCell
All Implemented Interfaces:
Focusable

public class DateCell
extends FocusableComplexPanel


Nested Class Summary
 class DateCell.DateCellSlot
           
 
Constructor Summary
DateCell(WeekGrid parent, java.util.Date date)
           
 
Method Summary
 void addEmphasisStyle(com.google.gwt.user.client.Element elementOver)
          Deprecated. As of 7.2, call or override addEmphasisStyle(Element) instead
 void addEmphasisStyle(Element elementOver)
           
 void addEvent(java.util.Date targetDay, CalendarEvent calendarEvent)
           
 void addEvent(DateCellDayEvent dayEvent)
           
 void cancelRangeSelect()
           
 java.util.Date getDate()
           
 int getFirstHour()
           
 int getLastHour()
           
 int getNumberOfSlots()
           
 DateCellGroup getOverlappingEvents(int targetIndex)
          Returns all overlapping DayEvent indexes in the Group.
 DateCell.DateCellSlot getSlot(int index)
           
 int getSlotBorder()
           
 int getSlotHeight()
           
 int getSlotIndex(Element slotElement)
           
 Element getTodaybarElement()
           
 boolean isDisabled()
           
 boolean isToday()
           
protected  void onAttach()
           
 void onContextMenu(ContextMenuEvent event)
           
protected  void onDetach()
           
 void onKeyDown(KeyDownEvent event)
           
 void onMouseDown(MouseDownEvent event)
           
 void onMouseMove(MouseMoveEvent event)
           
 void onMouseUp(MouseUpEvent event)
           
 void recalculateEventWidths()
           
 void removeEmphasisStyle(com.google.gwt.user.client.Element elementOver)
          Deprecated. As of 7.2, call or override removeEmphasisStyle(Element) instead
 void removeEmphasisStyle(Element elementOver)
           
 void removeEvent(DateCellDayEvent dayEvent)
           
 void setDate(java.util.Date date)
           
 void setDateColor(java.lang.String styleName)
           
 void setDisabled(boolean disabled)
           
 void setHeightPX(int height, int[] cellHeights)
           
 void setHorizontalSized(boolean isHorizontalSized)
           
 void setTimeBarWidth(int timebarWidth)
           
 void setToday(java.util.Date today, int width)
           
 void setVerticalSized(boolean isVerticalSized)
           
 void setWidthPX(int cellWidth)
           
 
Methods inherited from class com.vaadin.client.ui.calendar.schedule.FocusableComplexPanel
addBlurHandler, addFocusHandler, addKeyDownHandler, addKeyPressHandler, focus, makeFocusable, setFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateCell

public DateCell(WeekGrid parent,
                java.util.Date date)
Method Detail

getFirstHour

public int getFirstHour()

getLastHour

public int getLastHour()

onAttach

protected void onAttach()

onDetach

protected void onDetach()

getSlotIndex

public int getSlotIndex(Element slotElement)

getSlot

public DateCell.DateCellSlot getSlot(int index)

getNumberOfSlots

public int getNumberOfSlots()

setTimeBarWidth

public void setTimeBarWidth(int timebarWidth)

setHorizontalSized

public void setHorizontalSized(boolean isHorizontalSized)
Parameters:
isHorizontalSized - if true, this DateCell is sized with CSS and not via setWidthPX(int)

setVerticalSized

public void setVerticalSized(boolean isVerticalSized)
Parameters:
isVerticalSized - if true, this DateCell is sized with CSS and not via #setHeightPX(int)

setDate

public void setDate(java.util.Date date)

setWidthPX

public void setWidthPX(int cellWidth)

setHeightPX

public void setHeightPX(int height,
                        int[] cellHeights)

recalculateEventWidths

public void recalculateEventWidths()

getSlotHeight

public int getSlotHeight()

getSlotBorder

public int getSlotBorder()

getOverlappingEvents

public DateCellGroup getOverlappingEvents(int targetIndex)
Returns all overlapping DayEvent indexes in the Group. Including the target.

Parameters:
targetIndex - Index of DayEvent in the current DateCell widget.
Returns:
Group that contains all Overlapping DayEvent indexes

getDate

public java.util.Date getDate()

addEvent

public void addEvent(java.util.Date targetDay,
                     CalendarEvent calendarEvent)

addEvent

public void addEvent(DateCellDayEvent dayEvent)

removeEvent

public void removeEvent(DateCellDayEvent dayEvent)

onKeyDown

public void onKeyDown(KeyDownEvent event)

onMouseDown

public void onMouseDown(MouseDownEvent event)

onMouseUp

public void onMouseUp(MouseUpEvent event)

onMouseMove

public void onMouseMove(MouseMoveEvent event)

cancelRangeSelect

public void cancelRangeSelect()

setToday

public void setToday(java.util.Date today,
                     int width)

getTodaybarElement

public Element getTodaybarElement()

setDisabled

public void setDisabled(boolean disabled)

isDisabled

public boolean isDisabled()

setDateColor

public void setDateColor(java.lang.String styleName)

isToday

public boolean isToday()

addEmphasisStyle

@Deprecated
public void addEmphasisStyle(com.google.gwt.user.client.Element elementOver)
Deprecated. As of 7.2, call or override addEmphasisStyle(Element) instead


addEmphasisStyle

public void addEmphasisStyle(Element elementOver)
Since:
7.2

removeEmphasisStyle

@Deprecated
public void removeEmphasisStyle(com.google.gwt.user.client.Element elementOver)
Deprecated. As of 7.2, call or override removeEmphasisStyle(Element) instead


removeEmphasisStyle

public void removeEmphasisStyle(Element elementOver)
Since:
7.2

onContextMenu

public void onContextMenu(ContextMenuEvent event)


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