|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.ui.dd.VAbstractDropHandler
com.vaadin.client.ui.calendar.schedule.dd.CalendarDropHandler
com.vaadin.client.ui.calendar.schedule.dd.CalendarMonthDropHandler
public class CalendarMonthDropHandler
Handles DD when the monthly view is showing in the Calendar. In the monthly view, drops are only allowed in the the day cells. Only the day index is included in the drop details sent to the server.
| Field Summary |
|---|
| Fields inherited from class com.vaadin.client.ui.calendar.schedule.dd.CalendarDropHandler |
|---|
calendarConnector |
| Constructor Summary | |
|---|---|
CalendarMonthDropHandler(CalendarConnector connector)
|
|
| Method Summary | |
|---|---|
protected void |
dragAccepted(VDragEvent drag)
This method is called when a valid drop location was found with AcceptCriterion either via client or server side check. |
void |
dragEnter(VDragEvent drag)
The default implementation in VAbstractDropHandler checks if the
Transferable is accepted. |
void |
dragLeave(VDragEvent drag)
Default implementation does nothing. |
void |
dragOver(VDragEvent drag)
Default implementation does nothing. |
boolean |
drop(VDragEvent drag)
The default implemmentation visits server if AcceptCriterion
can't be verified on client or if AcceptCriterion are met on
client. |
| Methods inherited from class com.vaadin.client.ui.calendar.schedule.dd.CalendarDropHandler |
|---|
getApplicationConnection, getConnector |
| Methods inherited from class com.vaadin.client.ui.dd.VAbstractDropHandler |
|---|
updateAcceptRules, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CalendarMonthDropHandler(CalendarConnector connector)
| Method Detail |
|---|
protected void dragAccepted(VDragEvent drag)
VAbstractDropHandlerAcceptCriterion either via client or server side check.
Implementations can set some hints for users here to highlight that the drag is on a valid drop location.
dragAccepted in class VAbstractDropHandlerpublic void dragOver(VDragEvent drag)
VAbstractDropHandler
dragOver in interface VDropHandlerdragOver in class VAbstractDropHandlerpublic void dragEnter(VDragEvent drag)
VAbstractDropHandlerVAbstractDropHandler checks if the
Transferable is accepted.
If transferable is accepted (either via server visit or client side
rules) the default implementation calls abstract
VAbstractDropHandler.dragAccepted(VDragEvent) method.
If drop handler has distinct places where some parts may accept the
Transferable and others don't, one should use similar validation
logic in dragOver method and replace this method with empty
implementation.
dragEnter in interface VDropHandlerdragEnter in class VAbstractDropHandlerdrag - DragEvent which contains the transferable and other
information for the operationpublic boolean drop(VDragEvent drag)
VAbstractDropHandlerAcceptCriterion
can't be verified on client or if AcceptCriterion are met on
client.
drop in interface VDropHandlerdrop in class VAbstractDropHandlerpublic void dragLeave(VDragEvent drag)
VAbstractDropHandler
dragLeave in interface VDropHandlerdragLeave in class VAbstractDropHandlerdrag - DragEvent which contains the transferable and other
information for the operation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||