You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DropHandler.java 886B

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