diff options
Diffstat (limited to 'src/com/vaadin/event/dd/DropTargetDetailsImpl.java')
-rw-r--r-- | src/com/vaadin/event/dd/DropTargetDetailsImpl.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/com/vaadin/event/dd/DropTargetDetailsImpl.java b/src/com/vaadin/event/dd/DropTargetDetailsImpl.java new file mode 100644 index 0000000000..3046f03b88 --- /dev/null +++ b/src/com/vaadin/event/dd/DropTargetDetailsImpl.java @@ -0,0 +1,28 @@ +package com.vaadin.event.dd; + +import java.util.HashMap; +import java.util.Map; + +import com.vaadin.terminal.gwt.server.DragAndDropService; + +public class DropTargetDetailsImpl implements DropTargetDetails { + + private HashMap<String, Object> data = new HashMap<String, Object>(); + + public DropTargetDetailsImpl(Map<String, Object> rawDropData) { + data.putAll(rawDropData); + } + + public Object getData(String key) { + return data.get(key); + } + + public Object setData(String key, Object value) { + return data.put(key, value); + } + + public DropTarget getTarget() { + return (DropTarget) data.get(DragAndDropService.DROPTARGET_KEY); + } + +}
\ No newline at end of file |