0

Make conditional drop effect according to dragged widget ?

asked 2013-03-08 03:47:53 +0800

rangilin gravatar image rangilin
3

According to document, I can make custom drop effect by overriding

Widget.dropEffect_(boolean)

However, there is no reference of the widget which user is dragging, is it possible to get the reference so I can display different effect according to it ?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-03-08 04:24:35 +0800

rdgrimes gravatar image rdgrimes
735 7

updated 2013-03-08 04:26:07 +0800

See link. Obviously, to drop something onto a component, you must declare the component droppable. You can then listen via onDrop, which in turn has access to the event. That event object will tell you what was dropped.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-03-08 03:47:53 +0800

Seen: 15 times

Last updated: Mar 08 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More