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.

VDataBound.java 489B

12345678910111213141516171819
  1. /**
  2. *
  3. */
  4. package com.vaadin.terminal.gwt.client.ui.dd;
  5. import com.vaadin.terminal.gwt.client.UIDL;
  6. final public class VDataBound implements VAcceptCriterion {
  7. public void accept(VDragEvent drag, UIDL configuration,
  8. VAcceptCallback callback) {
  9. if (drag.getTransferable().getData("itemId") != null) {
  10. callback.accepted(drag);
  11. }
  12. }
  13. public boolean needsServerSideCheck(VDragEvent drag, UIDL criterioUIDL) {
  14. return false;
  15. }
  16. }