blob: 1a2ffb201089a9ca3f9ba2549f29fb2beb0eeee8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package com.vaadin.event;
import java.util.HashMap;
import java.util.Map;
import com.vaadin.terminal.gwt.server.DragAndDropService;
import com.vaadin.ui.Component;
public class DragDropDetailsImpl implements DragDropDetails {
private HashMap<String, Object> data = new HashMap<String, Object>();
public DragDropDetailsImpl(Map<String, Object> rawDropData) {
data.putAll(rawDropData);
}
public Object get(String key) {
return data.get(key);
}
public Object put(String key, Object value) {
return data.put(key, value);
}
public Component getTarget() {
return (Component) data.get(DragAndDropService.DROPTARGET_KEY);
}
}
|