voyent
Style of drag-and-drop target  XML
Forum Index -> Components
Author Message
aberrant80

Joined: 20/Jul/2006 00:00:00
Messages: 34
Offline


Hi, I've already implemented a tree with some drag-and-drop features among its nodes. Did you guys notice that both IE and firefox have different quirks when it comes to dragging?

Anyway, my main question is how would advise to implement auto style changes to drop targets when a dragged node is dragged across them? In my case, if I start dragging a node across the tree to another node, it's logical to expect all those nodes I mouse over to visually change to indicate themselves as drop targets.

None of your demo or examples actually show this. Are my options only limited to using javascript?

Edit: On the side, what exactly is the use of the tooltip property in IceUserObject? Doesn't seem to do anything when I set it... although it could have been shadowed by javascript tooltip I was using...
rmayhew


Joined: 11/Apr/2006 00:00:00
Messages: 100
Offline


Hi David,

The feature you are looking for will be included in the next release. A new attribute has been added to group panel. 'hoverclass' When set in a dropTarget the panel style will change to the hover style class.

In the meantime there is a workaround. The hover_start and hover_end events can be used to change the style of the drop target though the backend bean. You could also activate an effect like highlight.

Another option is add an effect to the onmouseovereffect call. onmouseovereffect="#{bean.effect}". However this will fire on all mouseover events.

Rob Mayhew
http://snappy.sensemaker.net

[Email]
aberrant80

Joined: 20/Jul/2006 00:00:00
Messages: 34
Offline


Regarding the hover_start and hover_end events... am I supposed to catch it with the dragListener or the dropListener?

I'm confused as to their differences and how they interact with a drag.

I have tree nodes which are panelgroups, and all of them are draggable and are drop targets. When I drag one and trigger hover_start, does the event get sent to the the drop target or the one being dragged or both?
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team