Class SimpleDayCell
- 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.google.gwt.user.client.ui.FlowPanel
-
- com.vaadin.client.ui.FocusableFlowPanel
-
- com.vaadin.v7.client.ui.calendar.schedule.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
-
-
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 voidaddCalendarEvent(CalendarEvent e)voidaddEmphasisStyle()com.google.gwt.event.shared.HandlerRegistrationaddMouseMoveHandler(com.google.gwt.event.dom.client.MouseMoveHandler handler)protected voidcancelEventDrag(MonthEventLabel w)CalendarEventgetCalendarEvent(int i)intgetCell()DategetDate()intgetEventCount()CalendarEvent[]getEvents()intgetHeigth()MonthGridgetMonthGrid()CalendarEventgetMoveEvent()intgetRow()intgetWidth()protected voidonAttach()protected voidonDetach()voidonLoad()voidonMouseDown(com.google.gwt.event.dom.client.MouseDownEvent event)voidonMouseMove(com.google.gwt.event.dom.client.MouseMoveEvent event)voidonMouseOver(com.google.gwt.event.dom.client.MouseOverEvent event)voidonMouseUp(com.google.gwt.event.dom.client.MouseUpEvent event)voidreDraw(boolean clear)voidremoveEmphasisStyle()booleanremoveEvent(CalendarEvent targetEvent, boolean reDrawImmediately)voidsetDate(Date date)voidsetHeightPX(int px, boolean clear)voidsetMonthGrid(MonthGrid monthGrid)voidsetMonthNameVisible(boolean b)voidsetToday(boolean today)voidstartCalendarEventDrag(com.google.gwt.event.dom.client.MouseDownEvent event, MonthEventLabel w)voidupdateDragPosition(MonthEventLabel w, int dayDiff, int weekDiff)voidupdateEvents(int slots, boolean clear)-
Methods inherited from class com.vaadin.client.ui.FocusableFlowPanel
addBlurHandler, addFocusHandler, addKeyDownHandler, addKeyPressHandler, focus, 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, 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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 java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
SimpleDayCell
public SimpleDayCell(VCalendar calendar, int row, int cell)
-
-
Method Detail
-
onLoad
public void onLoad()
- Overrides:
onLoadin classcom.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:
onAttachin classcom.google.gwt.user.client.ui.Widget
-
onDetach
protected void onDetach()
- Overrides:
onDetachin classcom.google.gwt.user.client.ui.Widget
-
onMouseUp
public void onMouseUp(com.google.gwt.event.dom.client.MouseUpEvent event)
- Specified by:
onMouseUpin interfacecom.google.gwt.event.dom.client.MouseUpHandler
-
onMouseDown
public void onMouseDown(com.google.gwt.event.dom.client.MouseDownEvent event)
- Specified by:
onMouseDownin interfacecom.google.gwt.event.dom.client.MouseDownHandler
-
onMouseOver
public void onMouseOver(com.google.gwt.event.dom.client.MouseOverEvent event)
- Specified by:
onMouseOverin interfacecom.google.gwt.event.dom.client.MouseOverHandler
-
onMouseMove
public void onMouseMove(com.google.gwt.event.dom.client.MouseMoveEvent event)
- Specified by:
onMouseMovein interfacecom.google.gwt.event.dom.client.MouseMoveHandler
-
startCalendarEventDrag
public void startCalendarEventDrag(com.google.gwt.event.dom.client.MouseDownEvent event, MonthEventLabel w)
-
cancelEventDrag
protected void cancelEventDrag(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)
-
getEvents
public CalendarEvent[] getEvents()
-
getEventCount
public int getEventCount()
-
getMoveEvent
public CalendarEvent getMoveEvent()
-
addEmphasisStyle
public void addEmphasisStyle()
-
removeEmphasisStyle
public void removeEmphasisStyle()
-
-