Class DateCell
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Panel
-
- com.google.gwt.user.client.ui.ComplexPanel
-
- com.vaadin.client.ui.calendar.schedule.FocusableComplexPanel
-
- com.vaadin.client.ui.calendar.schedule.DateCell
-
- All Implemented Interfaces:
com.google.gwt.event.dom.client.ContextMenuHandler
,com.google.gwt.event.dom.client.HasBlurHandlers
,com.google.gwt.event.dom.client.HasFocusHandlers
,com.google.gwt.event.dom.client.HasKeyDownHandlers
,com.google.gwt.event.dom.client.HasKeyPressHandlers
,com.google.gwt.event.dom.client.KeyDownHandler
,com.google.gwt.event.dom.client.MouseDownHandler
,com.google.gwt.event.dom.client.MouseMoveHandler
,com.google.gwt.event.dom.client.MouseUpHandler
,com.google.gwt.event.logical.shared.HasAttachHandlers
,com.google.gwt.event.shared.EventHandler
,com.google.gwt.event.shared.HasHandlers
,com.google.gwt.user.client.EventListener
,com.google.gwt.user.client.ui.HasVisibility
,com.google.gwt.user.client.ui.HasWidgets
,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
,com.google.gwt.user.client.ui.IndexedPanel
,com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
,com.google.gwt.user.client.ui.IsWidget
,Focusable
,Iterable<com.google.gwt.user.client.ui.Widget>
public class DateCell extends FocusableComplexPanel implements com.google.gwt.event.dom.client.MouseDownHandler, com.google.gwt.event.dom.client.MouseMoveHandler, com.google.gwt.event.dom.client.MouseUpHandler, com.google.gwt.event.dom.client.KeyDownHandler, com.google.gwt.event.dom.client.ContextMenuHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
DateCell.DateCellSlot
-
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addEmphasisStyle(com.google.gwt.dom.client.Element elementOver)
void
addEmphasisStyle(com.google.gwt.user.client.Element elementOver)
Deprecated.As of 7.2, call or overrideaddEmphasisStyle(Element)
insteadvoid
addEvent(DateCellDayEvent dayEvent)
void
addEvent(Date targetDay, CalendarEvent calendarEvent)
void
cancelRangeSelect()
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(com.google.gwt.dom.client.Element slotElement)
com.google.gwt.dom.client.Element
getTodaybarElement()
boolean
isDisabled()
boolean
isToday()
protected void
onAttach()
void
onContextMenu(com.google.gwt.event.dom.client.ContextMenuEvent event)
protected void
onDetach()
void
onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
void
onMouseDown(com.google.gwt.event.dom.client.MouseDownEvent event)
void
onMouseMove(com.google.gwt.event.dom.client.MouseMoveEvent event)
void
onMouseUp(com.google.gwt.event.dom.client.MouseUpEvent event)
void
recalculateEventWidths()
void
removeEmphasisStyle(com.google.gwt.dom.client.Element elementOver)
void
removeEmphasisStyle(com.google.gwt.user.client.Element elementOver)
Deprecated.As of 7.2, call or overrideremoveEmphasisStyle(Element)
insteadvoid
removeEvent(DateCellDayEvent dayEvent)
void
setDate(Date date)
void
setDateColor(String styleName)
void
setDisabled(boolean disabled)
void
setHeightPX(int height, int[] cellHeights)
void
setHorizontalSized(boolean isHorizontalSized)
void
setTimeBarWidth(int timebarWidth)
void
setToday(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 com.google.gwt.user.client.ui.ComplexPanel
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
-
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
-
-
-
Method Detail
-
getFirstHour
public int getFirstHour()
-
getLastHour
public int getLastHour()
-
onAttach
protected void onAttach()
- Overrides:
onAttach
in classcom.google.gwt.user.client.ui.Widget
-
onDetach
protected void onDetach()
- Overrides:
onDetach
in classcom.google.gwt.user.client.ui.Widget
-
getSlotIndex
public int getSlotIndex(com.google.gwt.dom.client.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 viasetWidthPX(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(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 Date getDate()
-
addEvent
public void addEvent(Date targetDay, CalendarEvent calendarEvent)
-
addEvent
public void addEvent(DateCellDayEvent dayEvent)
-
removeEvent
public void removeEvent(DateCellDayEvent dayEvent)
-
onKeyDown
public void onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
- Specified by:
onKeyDown
in interfacecom.google.gwt.event.dom.client.KeyDownHandler
-
onMouseDown
public void onMouseDown(com.google.gwt.event.dom.client.MouseDownEvent event)
- Specified by:
onMouseDown
in interfacecom.google.gwt.event.dom.client.MouseDownHandler
-
onMouseUp
public void onMouseUp(com.google.gwt.event.dom.client.MouseUpEvent event)
- Specified by:
onMouseUp
in interfacecom.google.gwt.event.dom.client.MouseUpHandler
-
onMouseMove
public void onMouseMove(com.google.gwt.event.dom.client.MouseMoveEvent event)
- Specified by:
onMouseMove
in interfacecom.google.gwt.event.dom.client.MouseMoveHandler
-
cancelRangeSelect
public void cancelRangeSelect()
-
setToday
public void setToday(Date today, int width)
-
getTodaybarElement
public com.google.gwt.dom.client.Element getTodaybarElement()
-
setDisabled
public void setDisabled(boolean disabled)
-
isDisabled
public boolean isDisabled()
-
setDateColor
public void setDateColor(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 overrideaddEmphasisStyle(Element)
instead
-
addEmphasisStyle
public void addEmphasisStyle(com.google.gwt.dom.client.Element elementOver)
- Since:
- 7.2
-
removeEmphasisStyle
@Deprecated public void removeEmphasisStyle(com.google.gwt.user.client.Element elementOver)
Deprecated.As of 7.2, call or overrideremoveEmphasisStyle(Element)
instead
-
removeEmphasisStyle
public void removeEmphasisStyle(com.google.gwt.dom.client.Element elementOver)
- Since:
- 7.2
-
onContextMenu
public void onContextMenu(com.google.gwt.event.dom.client.ContextMenuEvent event)
- Specified by:
onContextMenu
in interfacecom.google.gwt.event.dom.client.ContextMenuHandler
-
-