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.

DropTargetDetailsImpl.java 769B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. @ITMillApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.event.dd;
  5. import java.util.HashMap;
  6. import java.util.Map;
  7. import com.vaadin.terminal.gwt.server.DragAndDropService;
  8. /**
  9. * TODO Javadoc
  10. *
  11. * @since 6.3
  12. *
  13. */
  14. public class DropTargetDetailsImpl implements DropTargetDetails {
  15. private HashMap<String, Object> data = new HashMap<String, Object>();
  16. public DropTargetDetailsImpl(Map<String, Object> rawDropData) {
  17. data.putAll(rawDropData);
  18. }
  19. public Object getData(String key) {
  20. return data.get(key);
  21. }
  22. public Object setData(String key, Object value) {
  23. return data.put(key, value);
  24. }
  25. public DropTarget getTarget() {
  26. return (DropTarget) data.get(DragAndDropService.DROPTARGET_KEY);
  27. }
  28. }