My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 51: API is not well designed
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by eximius313, Oct 29, 2008
What steps will reproduce the problem?
1. Try to intercept event "drop outside DropTarget"

What version of the product are you using? On what operating system?
Rocket: 0.56 DragNDrop module 
Os: GNU/Linux Debian

Please provide any additional information below.
When DraggablePanel is dropped outside DropTargetPanel "onDrop" Event of
DragNDropListener is not beeing invoked.

I have tried to extend DraggablePanel (because it's not final!) and
override onDropped method (it is not final either) *but* DraggedPanel (one
of the parameters) is non-public internal class and man can do nothing!

Could you please do something about it?
Regards

Comment 1 by eximius313, Oct 29, 2008
Another thing:
DragMoveEvent as well as other event classes have stop() method. 
Unfortunatelly when you call stop() method while moving panel - whole move is cancelled.
There should be some "prevent()" method to prevent just *this* event (for example we
don't want panel to be moved outside some boundary) not whole movement!
Comment 2 by eximius313, Oct 29, 2008
One more:
While dragging DraggablePanel - Rocket always creates copy of Widget wrapped by
DraggablePanel which is not always desired effect.
For example:
- we just want to move whole widget not just it's proxy 
- or because copy of the button have different look and we want to create it manually.
If DraggablePanel has already "proxy" functionality - it's ok, but you should also
provide some property that one could set depends if he/she wants to create proxy or not.
Sign in to add a comment

Hosted by Google Code