diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2011-04-13 12:56:06 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2011-04-13 12:56:06 +0000 |
commit | 2829fefae4617806c97bfb81a10eb7dd18f1e9de (patch) | |
tree | f08b4c5a38f5f18ec7cf6cbd5656d13b00c7c89d | |
parent | b551779356cd0ee81577e12dad57c2cb7ca3f071 (diff) | |
download | vaadin-framework-2829fefae4617806c97bfb81a10eb7dd18f1e9de.tar.gz vaadin-framework-2829fefae4617806c97bfb81a10eb7dd18f1e9de.zip |
#6823: more standard method names
svn changeset:18268/svn branch:6.6
-rw-r--r-- | src/com/vaadin/ui/DragAndDropWrapper.java | 26 |
1 files 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 { |