From 2829fefae4617806c97bfb81a10eb7dd18f1e9de Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Wed, 13 Apr 2011 12:56:06 +0000 Subject: #6823: more standard method names svn changeset:18268/svn branch:6.6 --- src/com/vaadin/ui/DragAndDropWrapper.java | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/com/vaadin/ui/DragAndDropWrapper.java b/src/com/vaadin/ui/DragAndDropWrapper.java index aebdde975a..83aa6314c8 100644 --- a/src/com/vaadin/ui/DragAndDropWrapper.java +++ b/src/com/vaadin/ui/DragAndDropWrapper.java @@ -126,16 +126,38 @@ public class DragAndDropWrapper extends CustomComponent implements DropTarget, .deSerialize((String) getData("mouseEvent")); } - public VerticalDropLocation verticalDropLocation() { + /** + * @return a detail about the drags vertical position over the wrapper. + */ + public VerticalDropLocation getVerticalDropLocation() { return VerticalDropLocation .valueOf((String) getData("verticalLocation")); } - public HorizontalDropLocation horizontalDropLocation() { + /** + * @return a detail about the drags horizontal position over the wrapper. + */ + public HorizontalDropLocation getHorizontalDropLocation() { return HorizontalDropLocation .valueOf((String) getData("horizontalLocation")); } + /** + * @deprecated use {@link #getVerticalDropLocation()} instead + */ + @Deprecated + public VerticalDropLocation verticalDropLocation() { + return getVerticalDropLocation(); + } + + /** + * @deprecated use {@link #getHorizontalDropLocation()} instead + */ + @Deprecated + public HorizontalDropLocation horizontalDropLocation() { + return getHorizontalDropLocation(); + } + } public enum DragStartMode { -- cgit v1.2.3