blob: 1c9e30dd71d3dd1b6ac5d61836c698c9af26645f (
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
29
30
31
32
33
|
package com.vaadin.event.dd;
import java.util.Map;
import com.vaadin.ui.Component;
/**
* DropTarget is an interface for components supporting drop operations. A
* component that wants to receive drop events should implement this interface
* and provide a DropHandler which will handle the actual drop event.
*
* @since 6.3
*/
public interface DropTarget extends Component {
public DropHandler getDropHandler();
/**
* Called before a drop operation to translate the drop target details
* provided by the client widget (drop target). Should return a DropData
* implementation with the new values. If null is returned the terminal
* implementation will automatically create a {@link DropTargetDetails} with
* all the client variables.
*
* @param rawVariables
* Parameters passed from the client side widget.
* @return A DropTargetDetails object with the translated data or null to
* use a default implementation.
*/
public DropTargetDetails translateDropTargetDetails(
Map<String, Object> clientVariables);
}
|