blob: 1498d2b5aaa758f76d4a76bc4e4644eb2b26c096 (
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
|
/*
@ITMillApache2LicenseForJavaFiles@
*/
/**
*
*/
package com.vaadin.event.dd.acceptCriteria;
import com.vaadin.event.dd.DragAndDropEvent;
import com.vaadin.terminal.gwt.client.ui.dd.VAcceptAll;
/**
* Criterion that accepts all drops anywhere on the component.
*
* @since 6.3
*
*/
@ClientCriterion(VAcceptAll.class)
public final class AcceptAll extends ClientSideCriterion {
private static AcceptCriterion singleton = new AcceptAll();
private AcceptAll() {
}
public static AcceptCriterion get() {
return singleton;
}
public boolean accepts(DragAndDropEvent dragEvent) {
return true;
}
}
|