123456789101112131415161718192021222324252627282930313233 |
- /*
- @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;
- }
- }
|