diff options
author | Pekka Hyvönen <pekka@vaadin.com> | 2017-03-22 08:32:34 +0200 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-03-22 08:32:34 +0200 |
commit | 9a679b57d13cce81dab5d6283767adba83e8c735 (patch) | |
tree | d912b443876ead90d80c969edcb8f165f18d7ff7 /client | |
parent | d1fa1a3efe08e0843a38947dcd8ffe65e04ed12c (diff) | |
download | vaadin-framework-9a679b57d13cce81dab5d6283767adba83e8c735.tar.gz vaadin-framework-9a679b57d13cce81dab5d6283767adba83e8c735.zip |
Deprecate old DnD functionality (#8864)
Closes #8795
Diffstat (limited to 'client')
27 files changed, 183 insertions, 11 deletions
diff --git a/client/src/main/java/com/vaadin/client/ui/dd/DDEventHandleStrategy.java b/client/src/main/java/com/vaadin/client/ui/dd/DDEventHandleStrategy.java index c459f78756..6d4e3df74f 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/DDEventHandleStrategy.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/DDEventHandleStrategy.java @@ -23,6 +23,7 @@ import com.google.gwt.event.dom.client.KeyCodes; import com.google.gwt.user.client.Event; import com.google.gwt.user.client.Event.NativePreviewEvent; import com.vaadin.client.WidgetUtil; +import com.vaadin.client.extensions.DropTargetExtensionConnector; import com.vaadin.client.ui.dd.VDragAndDropManager.DDManagerMediator; /** @@ -32,7 +33,9 @@ import com.vaadin.client.ui.dd.VDragAndDropManager.DDManagerMediator; * * @author Vaadin Ltd * @since 7.4.4 + * @deprecated Replaced in 8.1 with {@link DropTargetExtensionConnector} */ +@Deprecated public class DDEventHandleStrategy { /** diff --git a/client/src/main/java/com/vaadin/client/ui/dd/DragImageModifier.java b/client/src/main/java/com/vaadin/client/ui/dd/DragImageModifier.java index a7ff8902bb..0438c99b7f 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/DragImageModifier.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/DragImageModifier.java @@ -16,6 +16,7 @@ package com.vaadin.client.ui.dd; import com.google.gwt.dom.client.Element; +import com.vaadin.client.extensions.DragSourceExtensionConnector; /** * Interface implemented by widgets if the drag image used for drag'n'drop @@ -25,7 +26,10 @@ import com.google.gwt.dom.client.Element; * * @since 7.2 * @author Vaadin Ltd + * @deprecated Since 8.1, no direct replacement, see + * {@link DragSourceExtensionConnector} */ +@Deprecated public interface DragImageModifier { /** diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VAbstractDropHandler.java b/client/src/main/java/com/vaadin/client/ui/dd/VAbstractDropHandler.java index 367de5523a..883b5e5164 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VAbstractDropHandler.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VAbstractDropHandler.java @@ -20,10 +20,17 @@ import java.util.Iterator; import com.google.gwt.user.client.Command; import com.vaadin.client.ComponentConnector; import com.vaadin.client.UIDL; +import com.vaadin.client.extensions.DropTargetExtensionConnector; import com.vaadin.event.Transferable; import com.vaadin.event.dd.DropTarget; import com.vaadin.event.dd.acceptcriteria.AcceptCriterion; +/** + * + * @author Vaadin Ltd + * @deprecated Replaced in 8.1 with {@link DropTargetExtensionConnector} + */ +@Deprecated public abstract class VAbstractDropHandler implements VDropHandler { private UIDL criterioUIDL; diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VAcceptAll.java b/client/src/main/java/com/vaadin/client/ui/dd/VAcceptAll.java index a743c3bae9..315adc6e29 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VAcceptAll.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VAcceptAll.java @@ -17,8 +17,19 @@ package com.vaadin.client.ui.dd; import com.vaadin.client.UIDL; import com.vaadin.event.dd.acceptcriteria.AcceptAll; +import com.vaadin.event.dnd.DragSourceExtension; +import com.vaadin.event.dnd.DropTargetExtension; import com.vaadin.shared.ui.dd.AcceptCriterion; +/** + * + * @author Vaadin Ltd + * @deprecated Replaced in 8.1 with + * {@link DragSourceExtension#setEffectAllowed(com.vaadin.shared.ui.dnd.EffectAllowed)} + * and + * {@link DropTargetExtension#setDropEffect(com.vaadin.shared.ui.dnd.DropEffect)} + */ +@Deprecated @AcceptCriterion(AcceptAll.class) final public class VAcceptAll extends VAcceptCriterion { diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VAcceptCallback.java b/client/src/main/java/com/vaadin/client/ui/dd/VAcceptCallback.java index 6c919dd6ef..b112d6987e 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VAcceptCallback.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VAcceptCallback.java @@ -15,6 +15,15 @@ */ package com.vaadin.client.ui.dd; +import com.vaadin.client.extensions.DropTargetExtensionConnector; + +/** + * + * @author Vaadin Ltd + * @deprecated Since 8.1, no direct replacement, see + * {@link DropTargetExtensionConnector} + */ +@Deprecated public interface VAcceptCallback { /** diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VAcceptCriteria.java b/client/src/main/java/com/vaadin/client/ui/dd/VAcceptCriteria.java index 45e614a17b..f13b23e3a4 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VAcceptCriteria.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VAcceptCriteria.java @@ -16,10 +16,16 @@ package com.vaadin.client.ui.dd; import com.google.gwt.core.client.GWT; +import com.vaadin.event.dnd.DropTargetExtension; /** * A class via all AcceptCriteria instances are fetched by an identifier. + * + * @author Vaadin Ltd + * @deprecated Replaced in 8.1 with + * {@link DropTargetExtension#setDropCriteria(String)} */ +@Deprecated public class VAcceptCriteria { private static VAcceptCriterionFactory impl; diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VAcceptCriterion.java b/client/src/main/java/com/vaadin/client/ui/dd/VAcceptCriterion.java index ba2b8729c5..e23346d582 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VAcceptCriterion.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VAcceptCriterion.java @@ -16,7 +16,16 @@ package com.vaadin.client.ui.dd; import com.vaadin.client.UIDL; +import com.vaadin.event.dnd.DropTargetExtension; +/** + * + * @author Vaadin Ltd + * @deprecated Replaced in 8.1 with + * {@link DropTargetExtension#setDropCriteria(String)} + * + */ +@Deprecated public abstract class VAcceptCriterion { /** diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VAcceptCriterionFactory.java b/client/src/main/java/com/vaadin/client/ui/dd/VAcceptCriterionFactory.java index 37304223e1..ea9858b8ef 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VAcceptCriterionFactory.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VAcceptCriterionFactory.java @@ -15,10 +15,17 @@ */ package com.vaadin.client.ui.dd; +import com.vaadin.event.dnd.DropTargetExtension; + /** * Generated by - * {@link com.vaadin.server.widgetsetutils.AcceptCriteriaFactoryGenerator} + * {@link com.vaadin.server.widgetsetutils.AcceptCriteriaFactoryGenerator}. + * + * @author Vaadin Ltd + * @deprecated Replaced in 8.1 with + * {@link DropTargetExtension#setDropCriteria(String)} */ +@Deprecated public abstract class VAcceptCriterionFactory { public abstract VAcceptCriterion get(String name); diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VAnd.java b/client/src/main/java/com/vaadin/client/ui/dd/VAnd.java index 5fda3b0d39..94cddaafc6 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VAnd.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VAnd.java @@ -17,8 +17,16 @@ package com.vaadin.client.ui.dd; import com.vaadin.client.UIDL; import com.vaadin.event.dd.acceptcriteria.And; +import com.vaadin.event.dnd.DropTargetExtension; import com.vaadin.shared.ui.dd.AcceptCriterion; +/** + * + * @author Vaadin Ltd + * @deprecated Replaced in 8.1 with + * {@link DropTargetExtension#setDropCriteria(String)} + */ +@Deprecated @AcceptCriterion(And.class) final public class VAnd extends VAcceptCriterion implements VAcceptCallback { private boolean b1; diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VContainsDataFlavor.java b/client/src/main/java/com/vaadin/client/ui/dd/VContainsDataFlavor.java index 1250632e80..fde060951d 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VContainsDataFlavor.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VContainsDataFlavor.java @@ -17,8 +17,16 @@ package com.vaadin.client.ui.dd; import com.vaadin.client.UIDL; import com.vaadin.event.dd.acceptcriteria.ContainsDataFlavor; +import com.vaadin.event.dnd.DropTargetExtension; import com.vaadin.shared.ui.dd.AcceptCriterion; +/** + * + * @author Vaadin Ltd + * @deprecated Replaced in 8.1 with + * {@link DropTargetExtension#setDropCriteria(String)} + */ +@Deprecated @AcceptCriterion(ContainsDataFlavor.class) final public class VContainsDataFlavor extends VAcceptCriterion { diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VDragAndDropManager.java b/client/src/main/java/com/vaadin/client/ui/dd/VDragAndDropManager.java index 7a6185e9f1..824bcd25f9 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VDragAndDropManager.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VDragAndDropManager.java @@ -39,6 +39,8 @@ import com.vaadin.client.UIDL; import com.vaadin.client.VConsole; import com.vaadin.client.ValueMap; import com.vaadin.client.WidgetUtil; +import com.vaadin.client.extensions.DragSourceExtensionConnector; +import com.vaadin.client.extensions.DropTargetExtensionConnector; import com.vaadin.client.ui.VOverlay; import com.vaadin.shared.ApplicationConstants; import com.vaadin.shared.MouseEventDetails; @@ -54,7 +56,12 @@ import com.vaadin.shared.ui.dd.DragEventType; * {@link #get()} to get instance. * * TODO cancel drag and drop if more than one touches !? + * + * @author Vaadin Ltd + * @deprecated Replaced in 8.1 with {@link DropTargetExtensionConnector} and + * {@link DragSourceExtensionConnector} */ +@Deprecated public class VDragAndDropManager { public static final String ACTIVE_DRAG_SOURCE_STYLENAME = "v-active-drag-source"; diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VDragEvent.java b/client/src/main/java/com/vaadin/client/ui/dd/VDragEvent.java index 7d281186c4..b2127c5b94 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VDragEvent.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VDragEvent.java @@ -31,13 +31,16 @@ import com.google.gwt.user.client.Event; import com.google.gwt.user.client.EventListener; import com.vaadin.client.BrowserInfo; import com.vaadin.client.WidgetUtil; +import com.vaadin.client.extensions.DropTargetExtensionConnector; /** * DragEvent used by Vaadin client side engine. Supports components, items, * properties and custom payload (HTML5 style). * - * + * @deprecated Since 8.1, no direct replacement, see + * {@link DropTargetExtensionConnector} */ +@Deprecated public class VDragEvent { private static final int DEFAULT_OFFSET = 10; diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VDragEventServerCallback.java b/client/src/main/java/com/vaadin/client/ui/dd/VDragEventServerCallback.java index 414b6997e6..e8c1fefae0 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VDragEventServerCallback.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VDragEventServerCallback.java @@ -16,7 +16,14 @@ package com.vaadin.client.ui.dd; import com.vaadin.client.UIDL; +import com.vaadin.shared.ui.dnd.DropTargetRpc; +/** + * + * @author Vaadin Ltd + * @deprecated Replaced in 8.1 {@link DropTargetRpc} + */ +@Deprecated public interface VDragEventServerCallback { public void handleResponse(boolean accepted, UIDL response); diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VDragSourceIs.java b/client/src/main/java/com/vaadin/client/ui/dd/VDragSourceIs.java index 615a02cbe5..a75fb8e771 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VDragSourceIs.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VDragSourceIs.java @@ -19,13 +19,17 @@ import com.vaadin.client.ComponentConnector; import com.vaadin.client.ConnectorMap; import com.vaadin.client.UIDL; import com.vaadin.event.dd.acceptcriteria.SourceIs; +import com.vaadin.event.dnd.DropTargetExtension; import com.vaadin.shared.ui.dd.AcceptCriterion; /** - * TODO Javadoc! * * @since 6.3 + * @author Vaadin Ltd + * @deprecated Replaced in 8.1 with + * {@link DropTargetExtension#setDropCriteria(String)} */ +@Deprecated @AcceptCriterion(SourceIs.class) final public class VDragSourceIs extends VAcceptCriterion { diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VDropHandler.java b/client/src/main/java/com/vaadin/client/ui/dd/VDropHandler.java index b3327ec5d2..a674a5839e 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VDropHandler.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VDropHandler.java @@ -17,11 +17,17 @@ package com.vaadin.client.ui.dd; import com.vaadin.client.ApplicationConnection; import com.vaadin.client.ComponentConnector; +import com.vaadin.event.dnd.DropListener; +import com.vaadin.event.dnd.DropTargetExtension; /** * Vaadin Widgets that want to receive something via drag and drop implement * this interface. + * + * @deprecated Replaced in 8.1 with {@link DropListener} and + * {@link DropTargetExtension} */ +@Deprecated public interface VDropHandler { /** diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VHasDropHandler.java b/client/src/main/java/com/vaadin/client/ui/dd/VHasDropHandler.java index c1d829d75a..f860af6160 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VHasDropHandler.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VHasDropHandler.java @@ -16,6 +16,7 @@ package com.vaadin.client.ui.dd; import com.vaadin.client.ComponentConnector; +import com.vaadin.client.extensions.DropTargetExtensionConnector; /** * Used to detect Widget from widget tree that has {@link #getDropHandler()} @@ -23,7 +24,10 @@ import com.vaadin.client.ComponentConnector; * Decide whether to get rid of this class. If so, {@link VAbstractDropHandler} * must extend {@link ComponentConnector}. * + * @author Vaadin Ltd + * @deprecated Replaced in 8.1 with {@link DropTargetExtensionConnector} */ +@Deprecated public interface VHasDropHandler { public VDropHandler getDropHandler(); } diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VHtml5DragEvent.java b/client/src/main/java/com/vaadin/client/ui/dd/VHtml5DragEvent.java index 340be2eb85..195229b478 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VHtml5DragEvent.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VHtml5DragEvent.java @@ -17,12 +17,16 @@ package com.vaadin.client.ui.dd; import com.google.gwt.core.client.JsArrayString; import com.google.gwt.dom.client.NativeEvent; +import com.vaadin.client.extensions.DropTargetExtensionConnector; /** * Helper class to access html5 style drag events. * - * TODO Gears support ? + * @author Vaadin Ltd + * @deprecated Since 8.1, no direct replacement currently, see + * {@link DropTargetExtensionConnector} */ +@Deprecated public class VHtml5DragEvent extends NativeEvent { protected VHtml5DragEvent() { } diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VHtml5File.java b/client/src/main/java/com/vaadin/client/ui/dd/VHtml5File.java index 3cd2cf1076..5dcf0ce630 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VHtml5File.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VHtml5File.java @@ -19,7 +19,13 @@ import com.google.gwt.core.client.JavaScriptObject; /** * Wrapper for html5 File object. + * + * @author Vaadin Ltd + * @deprecated Since 8.1, will be replaced by FileDropTargetExtensionConnector + * and FileDropTargetExtension, + * https://github.com/vaadin/framework/issues/8891 */ +@Deprecated public class VHtml5File extends JavaScriptObject { protected VHtml5File() { diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VLazyInitItemIdentifiers.java b/client/src/main/java/com/vaadin/client/ui/dd/VLazyInitItemIdentifiers.java index d04f24c136..6ea88d57f9 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VLazyInitItemIdentifiers.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VLazyInitItemIdentifiers.java @@ -18,10 +18,16 @@ package com.vaadin.client.ui.dd; import java.util.HashSet; import com.vaadin.client.UIDL; +import com.vaadin.event.dnd.DropTargetExtension; /** * + * @author Vaadin Ltd + * @deprecated Replaced in 8.1 with + * {@link DropTargetExtension#setDragOverCriteria(String)} and + * {@link DropTargetExtension#setDropCriteria(String)} */ +@Deprecated public class VLazyInitItemIdentifiers extends VAcceptCriterion { private boolean loaded = false; private HashSet<String> hashSet; diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VNot.java b/client/src/main/java/com/vaadin/client/ui/dd/VNot.java index a6f8b72e15..3a79da5fb6 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VNot.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VNot.java @@ -18,14 +18,18 @@ package com.vaadin.client.ui.dd; import com.vaadin.client.UIDL; import com.vaadin.client.VConsole; import com.vaadin.event.dd.acceptcriteria.Not; +import com.vaadin.event.dnd.DropTargetExtension; import com.vaadin.shared.ui.dd.AcceptCriterion; /** - * TODO implementation could now be simplified/optimized * + * @author Vaadin Ltd + * @deprecated Replaced in 8.1 with + * {@link DropTargetExtension#setDropCriteria(String)} */ +@Deprecated @AcceptCriterion(Not.class) -final public class VNot extends VAcceptCriterion { +public final class VNot extends VAcceptCriterion { private boolean b1; private VAcceptCriterion crit1; diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VOr.java b/client/src/main/java/com/vaadin/client/ui/dd/VOr.java index 73fb192127..fd17c44bef 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VOr.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VOr.java @@ -17,13 +17,18 @@ package com.vaadin.client.ui.dd; import com.vaadin.client.UIDL; import com.vaadin.event.dd.acceptcriteria.Or; +import com.vaadin.event.dnd.DropTargetExtension; import com.vaadin.shared.ui.dd.AcceptCriterion; /** * + * @author Vaadin Ltd + * @deprecated Replaced in 8.1 with + * {@link DropTargetExtension#setDropCriteria(String)} */ +@Deprecated @AcceptCriterion(Or.class) -final public class VOr extends VAcceptCriterion implements VAcceptCallback { +public final class VOr extends VAcceptCriterion implements VAcceptCallback { private boolean accepted; @Override diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VOverTreeNode.java b/client/src/main/java/com/vaadin/client/ui/dd/VOverTreeNode.java index 13542933de..7e2476acc9 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VOverTreeNode.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VOverTreeNode.java @@ -16,7 +16,15 @@ package com.vaadin.client.ui.dd; import com.vaadin.client.UIDL; +import com.vaadin.event.dnd.DropTargetExtension; +/** + * + * @author Vaadin Ltd + * @deprecated Since 8.1, no direct replacement, see {@link DropTargetExtension} + * and extending classes + */ +@Deprecated final public class VOverTreeNode extends VAcceptCriterion { @Override diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VServerAccept.java b/client/src/main/java/com/vaadin/client/ui/dd/VServerAccept.java index 6ff0cc1e19..78a37bd16d 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VServerAccept.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VServerAccept.java @@ -17,10 +17,17 @@ package com.vaadin.client.ui.dd; import com.vaadin.client.UIDL; import com.vaadin.event.dd.acceptcriteria.ServerSideCriterion; +import com.vaadin.event.dnd.DropTargetExtension; import com.vaadin.shared.ui.dd.AcceptCriterion; +/** + * + * @author Vaadin Ltd + * @deprecated Replaced in 8.1 with {@link DropTargetExtension} + */ +@Deprecated @AcceptCriterion(ServerSideCriterion.class) -final public class VServerAccept extends VAcceptCriterion { +public final class VServerAccept extends VAcceptCriterion { @Override public void accept(final VDragEvent drag, UIDL configuration, final VAcceptCallback callback) { diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VSourceIsTarget.java b/client/src/main/java/com/vaadin/client/ui/dd/VSourceIsTarget.java index 1ddad16189..9c989c4f40 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VSourceIsTarget.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VSourceIsTarget.java @@ -18,10 +18,18 @@ package com.vaadin.client.ui.dd; import com.vaadin.client.ComponentConnector; import com.vaadin.client.UIDL; import com.vaadin.event.dd.acceptcriteria.SourceIsTarget; +import com.vaadin.event.dnd.DropTargetExtension; import com.vaadin.shared.ui.dd.AcceptCriterion; +/** + * + * @author Vaadin Ltd + * @deprecated Replaced in 8.1 with + * {@link DropTargetExtension#setDropCriteria(String)} + */ +@Deprecated @AcceptCriterion(SourceIsTarget.class) -final public class VSourceIsTarget extends VAcceptCriterion { +public final class VSourceIsTarget extends VAcceptCriterion { @Override protected boolean accept(VDragEvent drag, UIDL configuration) { diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VTargetDetailIs.java b/client/src/main/java/com/vaadin/client/ui/dd/VTargetDetailIs.java index 16bd15bab3..908613ee1b 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VTargetDetailIs.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VTargetDetailIs.java @@ -17,10 +17,18 @@ package com.vaadin.client.ui.dd; import com.vaadin.client.UIDL; import com.vaadin.event.dd.acceptcriteria.TargetDetailIs; +import com.vaadin.event.dnd.DropTargetExtension; import com.vaadin.shared.ui.dd.AcceptCriterion; +/** + * + * @author Vaadin Ltd + * @deprecated Replaced in 8.1 with + * {@link DropTargetExtension#setDropCriteria(String)} + */ +@Deprecated @AcceptCriterion(TargetDetailIs.class) -final public class VTargetDetailIs extends VAcceptCriterion { +public final class VTargetDetailIs extends VAcceptCriterion { @Override protected boolean accept(VDragEvent drag, UIDL configuration) { diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VTransferable.java b/client/src/main/java/com/vaadin/client/ui/dd/VTransferable.java index 804d9c1bcb..6f3ca4495a 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VTransferable.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VTransferable.java @@ -20,12 +20,16 @@ import java.util.HashMap; import java.util.Map; import com.vaadin.client.ComponentConnector; +import com.vaadin.client.extensions.DragSourceExtensionConnector; import com.vaadin.event.dd.DragSource; /** - * Client side counterpart for Transferable in com.vaadin.event.Transferable + * Client side counterpart for Transferable in com.vaadin.event.Transferable. * + * @author Vaadin Ltd + * @deprecated Replaced in 8.1 with {@link DragSourceExtensionConnector} */ +@Deprecated public class VTransferable { private ComponentConnector component; diff --git a/client/src/main/java/com/vaadin/client/ui/draganddropwrapper/DragAndDropWrapperConnector.java b/client/src/main/java/com/vaadin/client/ui/draganddropwrapper/DragAndDropWrapperConnector.java index 038d58afd0..47fb1ad682 100644 --- a/client/src/main/java/com/vaadin/client/ui/draganddropwrapper/DragAndDropWrapperConnector.java +++ b/client/src/main/java/com/vaadin/client/ui/draganddropwrapper/DragAndDropWrapperConnector.java @@ -26,6 +26,8 @@ import com.vaadin.client.ConnectorMap; import com.vaadin.client.Paintable; import com.vaadin.client.UIDL; import com.vaadin.client.VConsole; +import com.vaadin.client.extensions.DragSourceExtensionConnector; +import com.vaadin.client.extensions.DropTargetExtensionConnector; import com.vaadin.client.ui.VDragAndDropWrapper; import com.vaadin.client.ui.customcomponent.CustomComponentConnector; import com.vaadin.shared.ui.Connect; @@ -33,6 +35,13 @@ import com.vaadin.shared.ui.draganddropwrapper.DragAndDropWrapperConstants; import com.vaadin.shared.ui.draganddropwrapper.DragAndDropWrapperServerRpc; import com.vaadin.ui.DragAndDropWrapper; +/** + * + * @author Vaadin Ltd + * @deprecated Replaced in 8.1 with {@link DragSourceExtensionConnector} and + * {@link DropTargetExtensionConnector}. + */ +@Deprecated @Connect(DragAndDropWrapper.class) public class DragAndDropWrapperConnector extends CustomComponentConnector implements Paintable, VDragAndDropWrapper.UploadHandler { |