blob: cf6d850b7b85fca38fe5366bd28d0c4e77910721 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*
@ITMillApache2LicenseForJavaFiles@
*/
package com.vaadin.event.dd;
import java.io.Serializable;
import com.vaadin.event.dd.acceptCriteria.AcceptAll;
import com.vaadin.event.dd.acceptCriteria.AcceptCriterion;
/**
* TODO Javadoc
*
* @since 6.3
*
*/
public interface DropHandler extends Serializable {
public void drop(DragAndDropEvent dropEvent);
/**
* Returns the {@link AcceptCriterion} used to evaluate whether the
* {@link Transferable} will be handed over to {@link DropHandler}. If
* client side can't verify the {@link AcceptCriterion}, the same criteria
* may be tested also prior to actual drop - during the drag operation.
* <p>
* If everything is accepted developer can return {@link AcceptAll}
* instance.
*
* @return the {@link AcceptCriterion}
*/
public AcceptCriterion getAcceptCriterion();
}
|