12345678910111213141516171819202122232425262728293031323334353637 |
- /*
- @ITMillApache2LicenseForJavaFiles@
- */
- package com.vaadin.event.dd;
-
- import java.util.HashMap;
- import java.util.Map;
-
- import com.vaadin.terminal.gwt.server.DragAndDropService;
-
- /**
- * TODO Javadoc
- *
- * @since 6.3
- *
- */
- 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);
- }
-
- }
|