com.vaadin.ui.components.calendar
Class CalendarTargetDetails

java.lang.Object
  extended by com.vaadin.event.dd.TargetDetailsImpl
      extended by com.vaadin.ui.components.calendar.CalendarTargetDetails
All Implemented Interfaces:
TargetDetails, java.io.Serializable

public class CalendarTargetDetails
extends TargetDetailsImpl

Drop details for Calendar. When something is dropped on the Calendar, this class contains the specific details of the drop point. Specifically, this class gives access to the date where the drop happened. If the Calendar was in weekly mode, the date also includes the start time of the slot.

Since:
7.1
Author:
Vaadin Ltd.
See Also:
Serialized Form

Constructor Summary
CalendarTargetDetails(java.util.Map<java.lang.String,java.lang.Object> rawDropData, DropTarget dropTarget)
           
 
Method Summary
 java.util.Date getDropTime()
           
 Calendar getTargetCalendar()
           
 boolean hasDropTime()
           
 void setHasDropTime(boolean hasDropTime)
          Does the dropped item have a time associated with it
 
Methods inherited from class com.vaadin.event.dd.TargetDetailsImpl
getData, getMouseEvent, getTarget, setData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarTargetDetails

public CalendarTargetDetails(java.util.Map<java.lang.String,java.lang.Object> rawDropData,
                             DropTarget dropTarget)
Method Detail

hasDropTime

public boolean hasDropTime()
Returns:
true if getDropTime() will return a date object with the time set to the start of the time slot where the drop happened

setHasDropTime

public void setHasDropTime(boolean hasDropTime)
Does the dropped item have a time associated with it

Parameters:
hasDropTime -

getDropTime

public java.util.Date getDropTime()
Returns:
the date where the drop happened

getTargetCalendar

public Calendar getTargetCalendar()
Returns:
the Calendar instance which was the target of the drop


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.