T - Type of the component that is dragged.@DomEvent(value="dragstart") public class DragStartEvent<T extends Component> extends ComponentEvent<T>
DragSource.addDragStartListener(com.vaadin.flow.component.ComponentEventListener),
Serialized Formsource| Constructor and Description |
|---|
DragStartEvent(T source,
boolean fromClient)
Creates a drag start event.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getComponent()
Returns the drag source component where the dragstart event occurred.
|
void |
setDragData(Object data)
Set server side drag data for this started drag operation.
|
getSource, isFromClient, unregisterListenertoStringpublic DragStartEvent(T source, boolean fromClient)
source - Component that is dragged.fromClient - true if the event originated from the client
side, false otherwisepublic T getComponent()
public void setDragData(Object data)
DropTarget if they are in the same UI.
This method is a shorthand for DragSource.setDragData(Object) and
overrides any previously set drag data.
data - Data to transfer to drop event.DropEvent.getDragData(),
DragEndEvent.clearDragData()Copyright © 2025. All rights reserved.