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.

DropTarget.java 1.1KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. @ITMillApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.event.dd;
  5. import java.util.Map;
  6. import com.vaadin.ui.Component;
  7. /**
  8. * DropTarget is an interface for components supporting drop operations. A
  9. * component that wants to receive drop events should implement this interface
  10. * and provide a DropHandler which will handle the actual drop event.
  11. *
  12. * @since 6.3
  13. */
  14. public interface DropTarget extends Component {
  15. public DropHandler getDropHandler();
  16. /**
  17. * Called before a drop operation to translate the drop target details
  18. * provided by the client widget (drop target). Should return a DropData
  19. * implementation with the new values. If null is returned the terminal
  20. * implementation will automatically create a {@link DropTargetDetails} with
  21. * all the client variables.
  22. *
  23. * @param rawVariables
  24. * Parameters passed from the client side widget.
  25. * @return A DropTargetDetails object with the translated data or null to
  26. * use a default implementation.
  27. */
  28. public DropTargetDetails translateDropTargetDetails(
  29. Map<String, Object> clientVariables);
  30. }