blob: fd720a3978259fae3533381bb42841b328406584 (
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
|
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();
}
|