Class 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
      • Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets

        com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
      • Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel

        com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
    • Field Summary

      • Fields inherited from class com.google.gwt.user.client.ui.UIObject

        DEBUG_ID_PREFIX
    • Constructor Summary

      Constructors 
      Constructor Description
      DateCell​(WeekGrid parent, Date date)  
    • Constructor Detail

      • DateCell

        public DateCell​(WeekGrid parent,
                        Date date)
    • Method Detail

      • getFirstHour

        public int getFirstHour()
      • getLastHour

        public int getLastHour()
      • onAttach

        protected void onAttach()
        Overrides:
        onAttach in class com.google.gwt.user.client.ui.Widget
      • onDetach

        protected void onDetach()
        Overrides:
        onDetach in class com.google.gwt.user.client.ui.Widget
      • getSlotIndex

        public int getSlotIndex​(com.google.gwt.dom.client.Element slotElement)
      • 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​(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()
      • onKeyDown

        public void onKeyDown​(com.google.gwt.event.dom.client.KeyDownEvent event)
        Specified by:
        onKeyDown in interface com.google.gwt.event.dom.client.KeyDownHandler
      • onMouseDown

        public void onMouseDown​(com.google.gwt.event.dom.client.MouseDownEvent event)
        Specified by:
        onMouseDown in interface com.google.gwt.event.dom.client.MouseDownHandler
      • onMouseUp

        public void onMouseUp​(com.google.gwt.event.dom.client.MouseUpEvent event)
        Specified by:
        onMouseUp in interface com.google.gwt.event.dom.client.MouseUpHandler
      • onMouseMove

        public void onMouseMove​(com.google.gwt.event.dom.client.MouseMoveEvent event)
        Specified by:
        onMouseMove in interface com.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 override addEmphasisStyle(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 override removeEmphasisStyle(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 interface com.google.gwt.event.dom.client.ContextMenuHandler