Class DragStartEvent<T extends AbstractComponent>

    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      DragStartEvent​(T source, com.vaadin.shared.ui.dnd.EffectAllowed effectAllowed)
      Creates a drag start event.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T getComponent()
      Returns the drag source component where the dragstart event occurred.
      com.vaadin.shared.ui.dnd.EffectAllowed getEffectAllowed()
      Returns the effectAllowed parameter of this event.
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DragStartEvent

        public DragStartEvent​(T source,
                              com.vaadin.shared.ui.dnd.EffectAllowed effectAllowed)
        Creates a drag start event.
        Parameters:
        source - Component that is dragged.
        effectAllowed - Allowed effects from DataTransfer.effectAllowed object.
    • Method Detail

      • getEffectAllowed

        public com.vaadin.shared.ui.dnd.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 class Component.Event
        Returns:
        Component which is dragged.