@@ -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 { | |||
/** |
@@ -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 { | |||
/** |
@@ -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; |
@@ -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 { | |||
@@ -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 { | |||
/** |
@@ -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; | |||
@@ -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 { | |||
/** |
@@ -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); |
@@ -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; |
@@ -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 { | |||
@@ -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"; |
@@ -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; |
@@ -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); |
@@ -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 { | |||
@@ -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 { | |||
/** |
@@ -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(); | |||
} |
@@ -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() { | |||
} |
@@ -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() { |
@@ -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; |
@@ -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; | |||
@@ -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 |
@@ -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 |
@@ -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) { |
@@ -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) { |
@@ -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) { |
@@ -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; |
@@ -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 { |
@@ -18,6 +18,8 @@ package com.vaadin.event; | |||
import java.io.Serializable; | |||
import java.util.Collection; | |||
import com.vaadin.event.dnd.DragSourceExtension; | |||
import com.vaadin.event.dnd.DropEvent; | |||
import com.vaadin.ui.Component; | |||
/** | |||
@@ -25,7 +27,11 @@ import com.vaadin.ui.Component; | |||
* Currently Transferable is only used for drag and drop. | |||
* | |||
* @since 6.3 | |||
* @deprecated Since 8.1 replaced by | |||
* {@link DragSourceExtension#setTransferData(String, String)}, | |||
* {@link DropEvent#getTransferData(String)}. | |||
*/ | |||
@Deprecated | |||
public interface Transferable extends Serializable { | |||
/** |
@@ -19,6 +19,7 @@ import java.io.Serializable; | |||
import com.vaadin.event.Transferable; | |||
import com.vaadin.event.dd.acceptcriteria.AcceptCriterion; | |||
import com.vaadin.event.dnd.DropEvent; | |||
/** | |||
* DragAndDropEvent wraps information related to drag and drop operation. It is | |||
@@ -31,8 +32,9 @@ import com.vaadin.event.dd.acceptcriteria.AcceptCriterion; | |||
* current drop event in {@link TargetDetails} (generated by {@link DropTarget}. | |||
* | |||
* @since 6.3 | |||
* | |||
* @deprecated Replaced in 8.1 by {@link DropEvent} | |||
*/ | |||
@Deprecated | |||
public class DragAndDropEvent implements Serializable { | |||
private final Transferable transferable; | |||
private final TargetDetails dropTargetDetails; |
@@ -19,6 +19,7 @@ import java.util.Map; | |||
import com.vaadin.event.Transferable; | |||
import com.vaadin.event.dd.acceptcriteria.AcceptCriterion; | |||
import com.vaadin.event.dnd.DragSourceExtension; | |||
import com.vaadin.ui.Component; | |||
/** | |||
@@ -34,8 +35,9 @@ import com.vaadin.ui.Component; | |||
* extend the data that will be available for {@link DropHandler}. | |||
* | |||
* @since 6.3 | |||
* | |||
* @deprecated Replaced in 8.1 by {@link DragSourceExtension} | |||
*/ | |||
@Deprecated | |||
public interface DragSource extends Component { | |||
/** |
@@ -21,6 +21,7 @@ import com.vaadin.event.Transferable; | |||
import com.vaadin.event.dd.acceptcriteria.AcceptAll; | |||
import com.vaadin.event.dd.acceptcriteria.AcceptCriterion; | |||
import com.vaadin.event.dd.acceptcriteria.ServerSideCriterion; | |||
import com.vaadin.event.dnd.DropListener; | |||
/** | |||
* DropHandlers contain the actual business logic for drag and drop operations. | |||
@@ -31,8 +32,9 @@ import com.vaadin.event.dd.acceptcriteria.ServerSideCriterion; | |||
* all. | |||
* | |||
* @since 6.3 | |||
* | |||
* @deprecated Replaced in 8.1 by {@link DropListener} | |||
*/ | |||
@Deprecated | |||
public interface DropHandler extends Serializable { | |||
/** |
@@ -17,6 +17,7 @@ package com.vaadin.event.dd; | |||
import java.util.Map; | |||
import com.vaadin.event.dnd.DropTargetExtension; | |||
import com.vaadin.ui.Component; | |||
/** | |||
@@ -25,7 +26,9 @@ import com.vaadin.ui.Component; | |||
* and provide a {@link DropHandler} which will handle the actual drop event. | |||
* | |||
* @since 6.3 | |||
* @deprecated Replaced in 8.1 by {@link DropTargetExtension}. | |||
*/ | |||
@Deprecated | |||
public interface DropTarget extends Component { | |||
/** |
@@ -17,6 +17,8 @@ package com.vaadin.event.dd; | |||
import java.io.Serializable; | |||
import com.vaadin.event.dnd.DropEvent; | |||
/** | |||
* TargetDetails wraps drop target related information about | |||
* {@link DragAndDropEvent}. | |||
@@ -27,8 +29,9 @@ import java.io.Serializable; | |||
* drop target specific API. | |||
* | |||
* @since 6.3 | |||
* | |||
* @deprecated Replaced in 8.1 by {@link DropEvent#getTransferData(String)} | |||
*/ | |||
@Deprecated | |||
public interface TargetDetails extends Serializable { | |||
/** |
@@ -18,6 +18,7 @@ package com.vaadin.event.dd; | |||
import java.util.HashMap; | |||
import java.util.Map; | |||
import com.vaadin.event.dnd.DropEvent; | |||
import com.vaadin.shared.MouseEventDetails; | |||
/** | |||
@@ -25,8 +26,9 @@ import com.vaadin.shared.MouseEventDetails; | |||
* implementation and for extension. | |||
* | |||
* @since 6.3 | |||
* | |||
* @deprecated Replaced in 8.1 by {@link DropEvent#getTransferData(String)} | |||
*/ | |||
@Deprecated | |||
@SuppressWarnings("serial") | |||
public class TargetDetailsImpl implements TargetDetails { | |||
@@ -33,6 +33,8 @@ import com.vaadin.event.dd.DropTarget; | |||
import com.vaadin.event.dd.TargetDetails; | |||
import com.vaadin.event.dd.TargetDetailsImpl; | |||
import com.vaadin.event.dd.acceptcriteria.AcceptCriterion; | |||
import com.vaadin.event.dnd.DragSourceExtension; | |||
import com.vaadin.event.dnd.DropTargetExtension; | |||
import com.vaadin.shared.ApplicationConstants; | |||
import com.vaadin.shared.Registration; | |||
import com.vaadin.shared.communication.SharedState; | |||
@@ -42,6 +44,13 @@ import com.vaadin.ui.UI; | |||
import elemental.json.JsonObject; | |||
/** | |||
* | |||
* @author Vaadin Ltd | |||
* @deprecated Since 8.1, no direct replacement, see {@link DragSourceExtension} | |||
* and {@link DropTargetExtension}. | |||
*/ | |||
@Deprecated | |||
public class DragAndDropService implements VariableOwner, ClientConnector { | |||
private int lastVisitId; |
@@ -33,6 +33,8 @@ import com.vaadin.event.dd.DropHandler; | |||
import com.vaadin.event.dd.DropTarget; | |||
import com.vaadin.event.dd.TargetDetails; | |||
import com.vaadin.event.dd.TargetDetailsImpl; | |||
import com.vaadin.event.dnd.DragSourceExtension; | |||
import com.vaadin.event.dnd.DropTargetExtension; | |||
import com.vaadin.server.PaintException; | |||
import com.vaadin.server.PaintTarget; | |||
import com.vaadin.server.StreamVariable; | |||
@@ -44,10 +46,22 @@ import com.vaadin.shared.ui.draganddropwrapper.DragAndDropWrapperServerRpc; | |||
import com.vaadin.shared.ui.draganddropwrapper.DragAndDropWrapperState; | |||
import com.vaadin.ui.declarative.DesignContext; | |||
/** | |||
* @author Vaadin Ltd | |||
* @deprecated Replaced in 8.1 with {@link DragSourceExtension} and | |||
* {@link DropTargetExtension}. | |||
*/ | |||
@SuppressWarnings("serial") | |||
@Deprecated | |||
public class DragAndDropWrapper extends CustomComponent | |||
implements DropTarget, DragSource, LegacyComponent { | |||
/** | |||
* @deprecated Since 8.1, will be replaced by FileDropTargetExtension and | |||
* FileDropEvent, | |||
* https://github.com/vaadin/framework/issues/8891 | |||
*/ | |||
@Deprecated | |||
public class WrapperTransferable extends TransferableImpl { | |||
private Html5File[] files; |