com.vaadin.ui.dnd.event.
Class DragStartEvent<T extends AbstractComponent>
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.event.ConnectorEvent
-
- com.vaadin.ui.Component.Event
-
- com.vaadin.ui.dnd.event.DragStartEvent<T>
-
Type Parameters:
T
- Type of the component that is dragged.All Implemented Interfaces:
Direct Known Subclasses:
public class DragStartEvent<T extends AbstractComponent> extends Component.Event
HTML5 drag start event.
Since:
8.1
Author:
Vaadin Ltd
See Also:
DragSourceExtension.addDragStartListener(DragStartListener)
, Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description DragStartEvent​(T source, EffectAllowed effectAllowed)
Creates a drag start event.
-
Method Summary
All Methods Modifier and Type Method Description T
getComponent()
Returns the drag source component where the dragstart event occurred.
EffectAllowed
getEffectAllowed()
Returns the
effectAllowed
parameter of this event.-
Methods inherited from class com.vaadin.event.ConnectorEvent
getConnector
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
DragStartEvent
public DragStartEvent​(T source, EffectAllowed effectAllowed)
Creates a drag start event.
Parameters:
source
- Component that is dragged.effectAllowed
- Allowed effects fromDataTransfer.effectAllowed
object.
-
-
Method Detail
-
getEffectAllowed
public EffectAllowed getEffectAllowed()
Returns the
effectAllowed
parameter of this event.Returns:
This event's
effectAllowed
parameter.
-
getComponent
public T getComponent()
Returns the drag source component where the dragstart event occurred.
Overrides:
getComponent
in classComponent.Event
Returns:
Component which is dragged.
-
-