com.vaadin.client.ui.calendar.schedule
Class DateCell
java.lang.Object
ComplexPanel
com.vaadin.client.ui.calendar.schedule.FocusableComplexPanel
com.vaadin.client.ui.calendar.schedule.DateCell
- All Implemented Interfaces:
- Focusable
public class DateCell
- extends FocusableComplexPanel
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateCell
public DateCell(WeekGrid parent,
java.util.Date date)
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.