Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Drag and Drop using AbsoluteLayout

Phil Barrett
1 decade ago Apr 14, 2010 1:27pm
Marko Grönroos
1 decade ago Apr 14, 2010 3:47pm
Phil Barrett
1 decade ago Apr 14, 2010 4:43pm
Jouni Koivuviita
1 decade ago Apr 14, 2010 6:40pm

Marko Grönroos: There appears to be some trouble with the [tt]AbsoluteLayout[/tt] as drop target; the accept indicator flickers annoyingly and apparently it doesn't accept dropping everywhere.

You can disable all the drop indication styles with these three style names:

layout.addStyleName("no-vertical-drag-hints");
layout.addStyleName("no-horizontal-drag-hints");
layout.addStyleName("no-box-drag-hints");

They should be made available on the API level, IMO, e.g. DragWrapper.setDragHints(DragHints.NONE); or something like that.

Last updated on Apr, 14th 2010
Marko Grönroos
1 decade ago Apr 14, 2010 8:03pm
Jouni Koivuviita
1 decade ago Apr 15, 2010 5:50am
Phil Barrett
1 decade ago Apr 15, 2010 9:36am
Erik Berry
1 decade ago Apr 15, 2010 10:08am
Phil Barrett
1 decade ago Apr 15, 2010 10:18am
Erik Berry
1 decade ago Apr 15, 2010 11:04am
Marko Grönroos
1 decade ago Apr 15, 2010 12:16pm
Phil Barrett
1 decade ago Apr 15, 2010 12:43pm
Phil Barrett
1 decade ago Apr 15, 2010 12:45pm

Erik Berry: Brilliant Phil!! - that worked for me, thank you for the code (also now I can see what I'm doing wrong).

Thanks again
(nice sheep pic BTW)

No problem, glad to help... Nice Dog pic.. we seem to have some sort of theme here :lol:

Marko Grönroos
1 decade ago Apr 15, 2010 1:33pm
Jouni Koivuviita
1 decade ago Apr 15, 2010 1:59pm
Marko Grönroos
1 decade ago Apr 15, 2010 2:16pm
Matti Tahvonen
1 decade ago Apr 15, 2010 2:29pm
Andris Lapinsh
1 decade ago Jun 12, 2010 2:24pm
Marko Grönroos
1 decade ago Jun 12, 2010 2:57pm
Sandor Daniel
1 decade ago Sep 02, 2010 4:49pm
Marko Grönroos
1 decade ago Sep 02, 2010 5:48pm
Marko Grönroos
1 decade ago Sep 07, 2010 4:54pm

As this has been asked before and was an interesting question, I wrote a simpl-ish example that shows how to draw connectors between dragged components.

Sandor Daniel
1 decade ago Sep 09, 2010 3:46pm
Pranay Choudhary
1 decade ago Jul 07, 2011 11:44am