blob: 9b24d7d2f56bcb3f38ce47997050efbfb057982e (
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
34
|
package com.vaadin.event.dd;
import java.util.Map;
import com.vaadin.ui.Component;
/**
* DropTarget is a marker 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.
*
*/
public interface DropTarget extends Component {
public DropHandler getDropHandler();
/**
* Called before a drop operation to translate the drop data provided by the
* client widget. Should return a DropData implementation with the new
* values. If null is returned the terminal implementation will
* automatically create a {@link TargetDetails} with all the client
* variables.
* <p>
* If this method returns null the data from client side will be passed
* through as-is without conversion.
*
* @param rawVariables
* Parameters passed from the client side widget.
* @return A DropData object with the translated data or null.
*/
public TargetDetails translateDragDropDetails(
Map<String, Object> clientVariables);
}
|