diff options
-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 { |