com.vaadin.client.ui.

Class VDragAndDropWrapper

  • All Implemented Interfaces:

    com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.AcceptsOneWidget, com.google.gwt.user.client.ui.HasOneWidget, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, VHasDropHandler, Iterable<com.google.gwt.user.client.ui.Widget>

    Direct Known Subclasses:

    VDragAndDropWrapperIE


    public class VDragAndDropWrapper
    extends VCustomComponent
    implements VHasDropHandler

    A wrapper for Drag and Drop. Must have features pending: drop details: locations + sizes in document hierarchy up to wrapper

    • Field Detail

      • hasTooltip

        public boolean hasTooltip

        For internal use only. May be removed or replaced in the future.

      • dragStartMode

        public int dragStartMode

        For internal use only. May be removed or replaced in the future.

      • client

        public ApplicationConnection client

        For internal use only. May be removed or replaced in the future.

      • dropHandler

        public VAbstractDropHandler dropHandler

        For internal use only. May be removed or replaced in the future.

      • fileIdToReceiver

        public Map<String,String> fileIdToReceiver

        For internal use only. May be removed or replaced in the future.

      • html5DataFlavors

        public ValueMap html5DataFlavors

        For internal use only. May be removed or replaced in the future.

      • acceptedTypes

        protected String[] acceptedTypes
      • fileIds

        public List<Integer> fileIds

        For internal use only. May be removed or replaced in the future.

      • files

        public List<VHtml5File> files

        For internal use only. May be removed or replaced in the future.

    • Constructor Detail

      • VDragAndDropWrapper

        public VDragAndDropWrapper()
    • Method Detail

      • initDragStartMode

        public void initDragStartMode()

        For internal use only. May be removed or replaced in the future.

      • getDragStartElement

        protected com.google.gwt.user.client.Element getDragStartElement()
      • startNextUpload

        public void startNextUpload()

        For internal use only. May be removed or replaced in the future.

      • hookHtml5DragStart

        protected void hookHtml5DragStart(com.google.gwt.dom.client.Element el)

        Since:

        7.2

      • hookHtml5Events

        @Deprecated
        protected void hookHtml5Events(com.google.gwt.user.client.Element el)

        Deprecated. As of 7.2, call or override hookHtml5Events(Element) instead

        Prototype code, memory leak risk.

        Parameters:

        el -

      • hookHtml5Events

        protected void hookHtml5Events(com.google.gwt.dom.client.Element el)

        Prototype code, memory leak risk.

        Parameters:

        el -

        Since:

        7.2

      • updateDropDetails

        public boolean updateDropDetails(VDragEvent drag)
      • deEmphasis

        protected void deEmphasis(boolean doLayout)
      • emphasis

        protected void emphasis(VDragEvent drag)
      • setDragAndDropWidget

        public void setDragAndDropWidget(com.google.gwt.user.client.ui.Widget widget)

        Set the widget that will be used as the drag image when using DragStartMode COMPONENT_OTHER .

        Parameters:

        widget -

      • getDragImageWidget

        public com.google.gwt.user.client.ui.Widget getDragImageWidget()

        Returns:

        the widget used as drag image. Returns null if no widget is set.