Class SimpleDayCell

  • All Implemented Interfaces:
    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.MouseDownHandler, com.google.gwt.event.dom.client.MouseMoveHandler, com.google.gwt.event.dom.client.MouseOverHandler, 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.InsertPanel, com.google.gwt.user.client.ui.InsertPanel.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, Focusable, Iterable<com.google.gwt.user.client.ui.Widget>

    public class SimpleDayCell
    extends FocusableFlowPanel
    implements com.google.gwt.event.dom.client.MouseUpHandler, com.google.gwt.event.dom.client.MouseDownHandler, com.google.gwt.event.dom.client.MouseOverHandler, com.google.gwt.event.dom.client.MouseMoveHandler
    A class representing a single cell within the calendar in month-view
    Since:
    7.1
    Author:
    Vaadin Ltd.
    • Nested Class Summary

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

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

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

        DEBUG_ID_PREFIX
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleDayCell​(VCalendar calendar, int row, int cell)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addCalendarEvent​(CalendarEvent e)  
      void addEmphasisStyle()  
      com.google.gwt.event.shared.HandlerRegistration addMouseMoveHandler​(com.google.gwt.event.dom.client.MouseMoveHandler handler)  
      protected void cancelEventDrag​(MonthEventLabel w)  
      CalendarEvent getCalendarEvent​(int i)  
      int getCell()  
      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​(com.google.gwt.event.dom.client.MouseDownEvent event)  
      void onMouseMove​(com.google.gwt.event.dom.client.MouseMoveEvent event)  
      void onMouseOver​(com.google.gwt.event.dom.client.MouseOverEvent event)  
      void onMouseUp​(com.google.gwt.event.dom.client.MouseUpEvent event)  
      void reDraw​(boolean clear)  
      void removeEmphasisStyle()  
      boolean removeEvent​(CalendarEvent targetEvent, boolean reDrawImmediately)  
      void setDate​(Date date)  
      void setHeightPX​(int px, boolean clear)  
      void setMonthGrid​(MonthGrid monthGrid)  
      void setMonthNameVisible​(boolean b)  
      void setToday​(boolean today)  
      void startCalendarEventDrag​(com.google.gwt.event.dom.client.MouseDownEvent event, MonthEventLabel w)  
      void updateDragPosition​(MonthEventLabel w, int dayDiff, int weekDiff)  
      void updateEvents​(int slots, boolean clear)  
      • Methods inherited from class com.google.gwt.user.client.ui.FlowPanel

        add, clear, insert, insert
      • 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, adopt, 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, 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
      • Methods inherited from interface com.google.gwt.event.shared.HasHandlers

        fireEvent
      • Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel

        getWidget, getWidgetCount, getWidgetIndex, remove
      • Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget

        getWidgetIndex
      • Methods inherited from interface com.google.gwt.user.client.ui.InsertPanel.ForIsWidget

        add
    • Constructor Detail

      • SimpleDayCell

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

      • onLoad

        public void onLoad()
        Overrides:
        onLoad in class com.google.gwt.user.client.ui.Widget
      • setMonthGrid

        public void setMonthGrid​(MonthGrid monthGrid)
      • getMonthGrid

        public MonthGrid getMonthGrid()
      • setDate

        public void setDate​(Date date)
      • getDate

        public 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​(com.google.gwt.event.dom.client.MouseMoveHandler handler)
      • 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
      • onMouseUp

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

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

        public void onMouseOver​(com.google.gwt.event.dom.client.MouseOverEvent event)
        Specified by:
        onMouseOver in interface com.google.gwt.event.dom.client.MouseOverHandler
      • onMouseMove

        public void onMouseMove​(com.google.gwt.event.dom.client.MouseMoveEvent event)
        Specified by:
        onMouseMove in interface com.google.gwt.event.dom.client.MouseMoveHandler
      • startCalendarEventDrag

        public void startCalendarEventDrag​(com.google.gwt.event.dom.client.MouseDownEvent event,
                                           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)
      • getEventCount

        public int getEventCount()
      • addEmphasisStyle

        public void addEmphasisStyle()
      • removeEmphasisStyle

        public void removeEmphasisStyle()